[improvement](spill) improve config of spill thread pool (#33992)
This commit is contained in:
@ -1166,10 +1166,15 @@ DEFINE_String(spill_storage_root_path, "");
|
||||
DEFINE_String(spill_storage_limit, "20%"); // 20%
|
||||
DEFINE_mInt32(spill_gc_interval_ms, "2000"); // 2s
|
||||
DEFINE_mInt32(spill_gc_file_count, "2000");
|
||||
DEFINE_Int32(spill_io_thread_pool_per_disk_thread_num, "2");
|
||||
DEFINE_Int32(spill_io_thread_pool_queue_size, "1024");
|
||||
DEFINE_Int32(spill_async_task_thread_pool_thread_num, "2");
|
||||
DEFINE_Int32(spill_async_task_thread_pool_queue_size, "1024");
|
||||
DEFINE_Int32(spill_io_thread_pool_thread_num, "-1");
|
||||
DEFINE_Validator(spill_io_thread_pool_thread_num, [](const int config) -> bool {
|
||||
if (config == -1) {
|
||||
CpuInfo::init();
|
||||
spill_io_thread_pool_thread_num = std::max(48, CpuInfo::num_cores() * 2);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
DEFINE_Int32(spill_io_thread_pool_queue_size, "102400");
|
||||
|
||||
DEFINE_mBool(check_segment_when_build_rowset_meta, "false");
|
||||
|
||||
|
||||
@ -1248,10 +1248,8 @@ DECLARE_String(spill_storage_root_path);
|
||||
DECLARE_String(spill_storage_limit);
|
||||
DECLARE_mInt32(spill_gc_interval_ms);
|
||||
DECLARE_mInt32(spill_gc_file_count);
|
||||
DECLARE_Int32(spill_io_thread_pool_per_disk_thread_num);
|
||||
DECLARE_Int32(spill_io_thread_pool_thread_num);
|
||||
DECLARE_Int32(spill_io_thread_pool_queue_size);
|
||||
DECLARE_Int32(spill_async_task_thread_pool_thread_num);
|
||||
DECLARE_Int32(spill_async_task_thread_pool_queue_size);
|
||||
|
||||
DECLARE_mBool(check_segment_when_build_rowset_meta);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user