This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 56fc00cb53 [chore](config) increase minimum thread num of some thread
pool (#12917)
56fc00cb53 is described below
commit 56fc00cb53f38e11a34f169eea401906812911b4
Author: Jerry Hu <[email protected]>
AuthorDate: Mon Sep 26 09:00:18 2022 +0800
[chore](config) increase minimum thread num of some thread pool (#12917)
Too small minimum thread num will cause additional overhead for creating
and recycling threads.
---
be/src/runtime/exec_env_init.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp
index fc2f5a7c02..c13c059d5b 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -120,19 +120,19 @@ Status ExecEnv::_init(const std::vector<StorePath>&
store_paths) {
config::doris_remote_scanner_thread_pool_queue_size);
ThreadPoolBuilder("LimitedScanThreadPool")
- .set_min_threads(1)
+ .set_min_threads(config::doris_scanner_thread_pool_thread_num)
.set_max_threads(config::doris_scanner_thread_pool_thread_num)
.set_max_queue_size(config::doris_scanner_thread_pool_queue_size)
.build(&_limited_scan_thread_pool);
ThreadPoolBuilder("SendBatchThreadPool")
- .set_min_threads(1)
+ .set_min_threads(config::send_batch_thread_pool_thread_num)
.set_max_threads(config::send_batch_thread_pool_thread_num)
.set_max_queue_size(config::send_batch_thread_pool_queue_size)
.build(&_send_batch_thread_pool);
ThreadPoolBuilder("DownloadCacheThreadPool")
- .set_min_threads(1)
+ .set_min_threads(config::download_cache_thread_pool_thread_num)
.set_max_threads(config::download_cache_thread_pool_thread_num)
.set_max_queue_size(config::download_cache_thread_pool_queue_size)
.build(&_download_cache_thread_pool);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]