From f9386862998f8dc5229186fc2eafb2a1a6ca19aa Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez Date: Wed, 8 May 2024 10:43:35 -0700 Subject: [PATCH] Enable grpc compression to be snappy-block (#47) Reduces 93.6% traffic between ingester and distributor Causes no additional latency, cpu or memory usage Signed-off-by: Friedrich Gonzalez --- CHANGELOG.md | 3 +++ cortex/config.libsonnet | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a900b307..c8e1c01e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## master / unreleased +* [ENHANCEMENT] Configure `-ingester.client.grpc-compression` to be `snappy-block` + ## 1.16.1 * [CHANGE] Upgrade memcached to 1.6.23-alpine and memcached-exporter to v0.14.2 * [CHANGE] Use cortex v1.16.1 diff --git a/cortex/config.libsonnet b/cortex/config.libsonnet index f9649856..708d2921 100644 --- a/cortex/config.libsonnet +++ b/cortex/config.libsonnet @@ -145,6 +145,7 @@ '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', },