Disable gRPC compression - #4429
Merged
Merged
Conversation
carles-grafana
marked this pull request as ready for review
December 9, 2024 13:24
carles-grafana
requested review from
electron0zero,
ie-pham,
javiermolinar,
joe-elliott,
mapno,
mdisibio,
stoewer,
yvrhdn and
zalegrala
as code owners
December 9, 2024 13:24
joe-elliott
reviewed
Dec 9, 2024
| @@ -1,5 +1,6 @@ | |||
| ## main / unreleased | |||
| * [FEATURE] tempo-cli: support dropping multiple traces in a single operation [#4266](https://github.com/grafana/tempo/pull/4266) (@ndk) | |||
| * [CHANGE] Disable gRPC compression in the querier and distributor. [#4429] (https://github.com/grafana/tempo/pull/4429) (@carles-grafana) | |||
Collaborator
There was a problem hiding this comment.
Let's add some more details here. Something like:
Disable gRPC compression in the querier and distributor for performance reasons.
If you would like to reenable we recommend snappy. Use the following settings:
querier:
<whatever the path to the setting is>
distributor:
<whatever the path to the setting is>
joe-elliott
approved these changes
Dec 9, 2024
Collaborator
|
Looks like there's a changelog conflict. Get that cleaned up and we'll merge! |
Our benchmark suggests that without compression, queriers and distributors use less CPU and memory. This setting is configured at the client end. That is, in the querier and in the ingester and metrics_generator clients of the distributor.
carles-grafana
force-pushed
the
disable-grpc-compression
branch
from
December 9, 2024 13:58
395a16d to
f2b9f9f
Compare
| // Everything else | ||
| flagext.DefaultValues(&c.IngesterClient) | ||
| c.IngesterClient.GRPCClientConfig.GRPCCompression = "snappy" | ||
| c.IngesterClient.GRPCClientConfig.GRPCCompression = "" |
Member
There was a problem hiding this comment.
nit: since this is changing the default values, let's update docs/sources/tempo/configuration/manifest.md as well.
Contributor
Author
There was a problem hiding this comment.
I'm writing a script to generate it automatically and to the check it in CI. I will add it in another PR.
electron0zero
approved these changes
Dec 9, 2024
|
some before/after benchmarks would have been nice ! otherwise everyone is aware of the tradeoff. |
Contributor
Author
mattdurham
pushed a commit
to mattdurham/tempo
that referenced
this pull request
Jun 18, 2026
Our benchmark suggests that without compression, queriers and distributors use less CPU and memory. This setting is configured at the client end. That is, in the querier and in the ingester and metrics_generator clients of the distributor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Our benchmark suggests that without compression, queriers and distributors use less CPU and memory.
This setting is configured at the client end.
That is, in the querier and in the ingester and metrics_generator clients of the distributor.
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]