From 410244b3baded0e37339fbbaf17093848c6bdcfd Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com> Date: Mon, 13 May 2024 05:20:15 -0700 Subject: [PATCH] Enable shuffle sharding in compactors (#51) Signed-off-by: Friedrich Gonzalez --- CHANGELOG.md | 1 + cortex/compactor.libsonnet | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8e1c01e..df972e8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## master / unreleased +* [CHANGE] Enable shuffle sharding in compactors * [ENHANCEMENT] Configure `-ingester.client.grpc-compression` to be `snappy-block` ## 1.16.1 diff --git a/cortex/compactor.libsonnet b/cortex/compactor.libsonnet index d12d5de5..65c10c81 100644 --- a/cortex/compactor.libsonnet +++ b/cortex/compactor.libsonnet @@ -30,6 +30,8 @@ // Enable sharding. 'compactor.sharding-enabled': true, + 'compactor.sharding-strategy': 'shuffle-sharding', + 'compactor.tenant-shard-size': 1, 'compactor.ring.store': 'consul', 'compactor.ring.consul.hostname': 'consul.%s.svc.cluster.local:8500' % $._config.namespace, 'compactor.ring.prefix': '',