This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 0ca55605da7 [fix](remote-scanner-pool) missing 
_remote_thread_pool_max_size value #28057 (#28053)
0ca55605da7 is described below

commit 0ca55605da761b9e77d8dd42e162976b8e1a9562
Author: Mingyu Chen <morning...@163.com>
AuthorDate: Wed Dec 6 15:33:21 2023 +0800

    [fix](remote-scanner-pool) missing _remote_thread_pool_max_size value 
#28057 (#28053)
    
    bp #28057
---
 be/src/vec/exec/scan/scanner_scheduler.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/exec/scan/scanner_scheduler.cpp 
b/be/src/vec/exec/scan/scanner_scheduler.cpp
index 3f2bc494e1c..023f46cf2c1 100644
--- a/be/src/vec/exec/scan/scanner_scheduler.cpp
+++ b/be/src/vec/exec/scan/scanner_scheduler.cpp
@@ -116,9 +116,12 @@ Status ScannerScheduler::init(ExecEnv* env) {
             config::doris_scanner_thread_pool_queue_size, "local_scan");
 
     // 3. remote scan thread pool
+    _remote_thread_pool_max_size = 
config::doris_max_remote_scanner_thread_pool_thread_num != -1
+                                           ? 
config::doris_max_remote_scanner_thread_pool_thread_num
+                                           : std::max(512, 
CpuInfo::num_cores() * 10);
     _remote_scan_thread_pool = std::make_unique<PriorityThreadPool>(
-            config::doris_remote_scanner_thread_pool_thread_num,
-            config::doris_remote_scanner_thread_pool_queue_size, 
"RemoteScanThreadPool");
+            _remote_thread_pool_max_size, 
config::doris_remote_scanner_thread_pool_queue_size,
+            "RemoteScanThreadPool");
 
     // 4. limited scan thread pool
     ThreadPoolBuilder("LimitedScanThreadPool")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to