Skip to content

Commit

Permalink
[opt](scanner) optimize the number of threads of scanners, follow up a…
Browse files Browse the repository at this point in the history
…pache#28640 (apache#30030)

follow up apache#28640, doris_scanner_thread_pool_thread_num may be to large in machines with 128 cores.
  • Loading branch information
AshinGau authored and stephen committed Jan 19, 2024
1 parent 56d5991 commit 17a1fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ DEFINE_Int32(doris_scanner_thread_pool_thread_num, "-1");
DEFINE_Validator(doris_scanner_thread_pool_thread_num, [](const int config) -> bool {
if (config == -1) {
CpuInfo::init();
doris_scanner_thread_pool_thread_num = std::max(48, CpuInfo::num_cores() * 4);
doris_scanner_thread_pool_thread_num = std::max(48, CpuInfo::num_cores() * 2);
}
return true;
});
Expand Down

0 comments on commit 17a1fd7

Please sign in to comment.