Skip to content

Commit 35cf980

Browse files
[release-v2.7] Set gRPC compression default to snappy in all cases (#4701)
* Set gRPC compression default to snappy in all cases (#4696) * Re add snappy compression in gRPC Signed-off-by: Joe Elliott <[email protected]> * manifest Signed-off-by: Joe Elliott <[email protected]> * changelog Signed-off-by: Joe Elliott <[email protected]> * manifest Signed-off-by: Joe Elliott <[email protected]> * changelog Signed-off-by: Joe Elliott <[email protected]> --------- Signed-off-by: Joe Elliott <[email protected]> (cherry picked from commit c8d9180) * ci? --------- Co-authored-by: Joe Elliott <[email protected]>
1 parent 63ae91e commit 35cf980

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## main / unreleased
22

3+
# v2.7.1
4+
5+
* [CHANGE] Default to snappy compression for all gRPC communications internal to Tempo. We feel this is a nice balance of resource usage and network traffic. For a discussion on alternatives see https://github.com/grafana/tempo/discussions/4683. [#4696](https://github.com/grafana/tempo/pull/4696) (@joe-elliott)
6+
37
# v2.7.0
48

59
* [CHANGE] Disable gRPC compression in the querier and distributor for performance reasons [#4429](https://github.com/grafana/tempo/pull/4429) (@carles-grafana)

cmd/tempo/app/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ func (c *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet) {
116116

117117
// Everything else
118118
flagext.DefaultValues(&c.IngesterClient)
119-
c.IngesterClient.GRPCClientConfig.GRPCCompression = ""
119+
c.IngesterClient.GRPCClientConfig.GRPCCompression = "snappy"
120120
flagext.DefaultValues(&c.GeneratorClient)
121-
c.GeneratorClient.GRPCClientConfig.GRPCCompression = ""
121+
c.GeneratorClient.GRPCClientConfig.GRPCCompression = "snappy"
122122
c.Overrides.RegisterFlagsAndApplyDefaults(f)
123123

124124
c.Distributor.RegisterFlagsAndApplyDefaults(util.PrefixConfig(prefix, "distributor"), f)

docs/sources/tempo/configuration/manifest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ ingester_client:
196196
grpc_client_config:
197197
max_recv_msg_size: 104857600
198198
max_send_msg_size: 104857600
199-
grpc_compression: ""
199+
grpc_compression: snappy
200200
rate_limit: 0
201201
rate_limit_burst: 0
202202
backoff_on_ratelimits: false
@@ -227,7 +227,7 @@ metrics_generator_client:
227227
grpc_client_config:
228228
max_recv_msg_size: 104857600
229229
max_send_msg_size: 104857600
230-
grpc_compression: ""
230+
grpc_compression: snappy
231231
rate_limit: 0
232232
rate_limit_burst: 0
233233
backoff_on_ratelimits: false
@@ -272,7 +272,7 @@ querier:
272272
grpc_client_config:
273273
max_recv_msg_size: 104857600
274274
max_send_msg_size: 16777216
275-
grpc_compression: ""
275+
grpc_compression: snappy
276276
rate_limit: 0
277277
rate_limit_burst: 0
278278
backoff_on_ratelimits: false

modules/querier/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet)
7676
GRPCClientConfig: grpcclient.Config{
7777
MaxRecvMsgSize: 100 << 20,
7878
MaxSendMsgSize: 16 << 20,
79-
GRPCCompression: "",
79+
GRPCCompression: "snappy",
8080
BackoffConfig: backoff.Config{ // the max possible backoff should be lesser than QueryTimeout, with room for actual query response time
8181
MinBackoff: 100 * time.Millisecond,
8282
MaxBackoff: 1 * time.Second,

0 commit comments

Comments
 (0)