From cdbab206249634e8effa65b21dc746fbb8635c9e Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Thu, 27 Jun 2024 17:26:27 +0900 Subject: [PATCH] Reestablish the previous rate limiting settings (#5175) --- quickwit/quickwit-control-plane/src/model/shard_table.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickwit/quickwit-control-plane/src/model/shard_table.rs b/quickwit/quickwit-control-plane/src/model/shard_table.rs index cd2888ee14e..17323d18fcf 100644 --- a/quickwit/quickwit-control-plane/src/model/shard_table.rs +++ b/quickwit/quickwit-control-plane/src/model/shard_table.rs @@ -32,9 +32,9 @@ use tracing::{error, info, warn}; /// Limits the number of shards that can be opened for scaling up a source to 12 per minute. const SCALING_UP_RATE_LIMITER_SETTINGS: RateLimiterSettings = RateLimiterSettings { - burst_limit: 30, - rate_limit: ConstantRate::new(30, Duration::from_secs(60)), - refill_period: Duration::from_secs(2), + burst_limit: 12, + rate_limit: ConstantRate::new(5, Duration::from_secs(60)), + refill_period: Duration::from_secs(5), }; /// Limits the number of shards that can be closed for scaling down a source to 2 per minute.