@@ -27,7 +27,6 @@ use http::HeaderMap;
27
27
use quickwit_common:: net:: HostAddr ;
28
28
use quickwit_common:: shared_consts:: {
29
29
DEFAULT_SHARD_BURST_LIMIT , DEFAULT_SHARD_SCALE_UP_FACTOR , DEFAULT_SHARD_THROUGHPUT_LIMIT ,
30
- MAX_SHARD_SCALE_UP_FACTOR ,
31
30
} ;
32
31
use quickwit_common:: uri:: Uri ;
33
32
use quickwit_proto:: indexing:: CpuCapacity ;
@@ -355,6 +354,9 @@ pub struct IngestApiConfig {
355
354
/// (hidden) Targeted throughput for each shard
356
355
pub shard_burst_limit : ByteSize ,
357
356
/// (hidden) new_shard_count = ceil(old_shard_count * shard_scaling_factor)
357
+ ///
358
+ /// Setting this too high will be cancelled out by the arbiter that prevents
359
+ /// creating too many shards at once.
358
360
pub shard_scale_up_factor : f32 ,
359
361
}
360
362
@@ -429,11 +431,9 @@ impl IngestApiConfig {
429
431
estimated_persist_size,
430
432
) ;
431
433
ensure ! (
432
- self . shard_scale_up_factor > 1.0
433
- && self . shard_scale_up_factor <= MAX_SHARD_SCALE_UP_FACTOR ,
434
- "shard_scale_up_factor ({:?}) must be in the (1,{}) interval" ,
434
+ self . shard_scale_up_factor > 1.0 ,
435
+ "shard_scale_up_factor ({:?}) must be greater than 1" ,
435
436
self . shard_scale_up_factor,
436
- MAX_SHARD_SCALE_UP_FACTOR ,
437
437
) ;
438
438
Ok ( ( ) )
439
439
}
0 commit comments