From 7ed3bc86e8e41008a89aa1cb9ab77b8c449625c5 Mon Sep 17 00:00:00 2001 From: Adrien Guillo Date: Fri, 17 May 2024 09:46:49 -0400 Subject: [PATCH] Set rebalance threshold to 10% --- quickwit/quickwit-control-plane/src/ingest/ingest_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickwit/quickwit-control-plane/src/ingest/ingest_controller.rs b/quickwit/quickwit-control-plane/src/ingest/ingest_controller.rs index 40bd2f5eefb..2566721e438 100644 --- a/quickwit/quickwit-control-plane/src/ingest/ingest_controller.rs +++ b/quickwit/quickwit-control-plane/src/ingest/ingest_controller.rs @@ -794,7 +794,7 @@ impl IngestController { } let num_open_shards_per_leader_target = num_open_shards / num_ingesters; let num_open_shards_per_leader_threshold = cmp::max( - num_open_shards_per_leader_target * 12 / 10, + num_open_shards_per_leader_target * 11 / 10, num_open_shards_per_leader_target + 1, ); let mut shards_to_move: Vec<&ShardEntry> = Vec::new();