From 9cc367fa65b6e807093b85b18ae211daf3395a03 Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez Date: Wed, 8 May 2024 10:54:13 -0700 Subject: [PATCH] Move grpc-compression to ingesterClientConfig (#48) Signed-off-by: Friedrich Gonzalez --- cortex/config.libsonnet | 5 ++++- cortex/distributor.libsonnet | 1 + cortex/querier.libsonnet | 1 + cortex/ruler.libsonnet | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cortex/config.libsonnet b/cortex/config.libsonnet index 708d2921..d70f4e00 100644 --- a/cortex/config.libsonnet +++ b/cortex/config.libsonnet @@ -70,6 +70,10 @@ 'server.grpc.keepalive.ping-without-stream-allowed': true, }, + ingesterClientConfig:: { + 'ingester.client.grpc-compression': 'snappy-block', + }, + genericBlocksStorageConfig:: { 'store.engine': 'blocks', }, @@ -145,7 +149,6 @@ 'distributor.replication-factor': $._config.replication_factor, 'distributor.shard-by-all-labels': true, 'distributor.health-check-ingesters': true, - 'ingester.client.grpc-compression': 'snappy-block', 'ring.heartbeat-timeout': '10m', }, diff --git a/cortex/distributor.libsonnet b/cortex/distributor.libsonnet index 27591569..28c6ea2f 100644 --- a/cortex/distributor.libsonnet +++ b/cortex/distributor.libsonnet @@ -8,6 +8,7 @@ $._config.ringConfig + $._config.distributorConfig + $._config.distributorLimitsConfig + + $._config.ingesterClientConfig + { target: 'distributor', diff --git a/cortex/querier.libsonnet b/cortex/querier.libsonnet index 15e22459..026b2825 100644 --- a/cortex/querier.libsonnet +++ b/cortex/querier.libsonnet @@ -9,6 +9,7 @@ $._config.queryConfig + $._config.queryEngineConfig + $._config.distributorConfig + + $._config.ingesterClientConfig + $._config.queryBlocksStorageConfig + $.blocks_metadata_caching_config + $.bucket_index_config + diff --git a/cortex/ruler.libsonnet b/cortex/ruler.libsonnet index b3f47027..96781a19 100644 --- a/cortex/ruler.libsonnet +++ b/cortex/ruler.libsonnet @@ -9,6 +9,7 @@ $._config.queryConfig + $._config.queryEngineConfig + $._config.distributorConfig + + $._config.ingesterClientConfig + $._config.rulerClientConfig + $._config.rulerLimitsConfig + $._config.queryBlocksStorageConfig +