Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.3.x] rpc: Disable compression for internal rpc replies #16569

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #16548

On the internal rpc send side compression is enabled selectively via
opts parameters but on the reply side we compress all replies that are
above 1Kib unconditionally by default.

Compression is usually useful for trading compute for IO. There seems
little point in doing this for internal rpc. Brokers are mostly
connected on low latency/high throughput links so compression just adds
needless CPU overhead.

In the higher cloud tiers at the partition limits we see the health
report infra cause overhead and latency degregation in higher
percentiles.

A large chunk of this comes from compressing and decoding the massive
health report messages.

This patch disables compression which measurably improves the situation
as per above reasoning.

This change has little impact on normal append_entries flow as the
replies don't make the 1Kib min boundary anyway.

Ref redpanda-data/core-internal#1047

(cherry picked from commit 5e0f34b)
@vbotbuildovich vbotbuildovich added this to the v23.3.x-next milestone Feb 10, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Feb 10, 2024
@piyushredpanda
Copy link
Contributor

Hmm, the storage unit-test continues to fail here (failed 2 times?). Wonder if it is genuinely broken or made worse by this PR or a happenstance.

@piyushredpanda
Copy link
Contributor

/ci-repeat

@StephanDollberg
Copy link
Member

Hmm, the storage unit-test continues to fail here (failed 2 times?). Wonder if it is genuinely broken or made worse by this PR or a happenstance.

Think the unit tests passed now but things seem broken with the buildkite pipeline changes. I will trigger a nother ci-repeat, maybe it got fixed in the meantime.

@StephanDollberg
Copy link
Member

/ci-repeat

1 similar comment
@piyushredpanda
Copy link
Contributor

/ci-repeat

@piyushredpanda piyushredpanda merged commit adc61e7 into redpanda-data:v23.3.x Feb 19, 2024
19 checks passed
@piyushredpanda piyushredpanda modified the milestones: v23.3.x-next, v23.3.6 Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants