github-actions[bot] commented on code in PR #26795:
URL: https://github.com/apache/doris/pull/26795#discussion_r1389606220
##########
be/src/vec/exec/scan/scanner_scheduler.cpp:
##########
@@ -112,13 +112,13 @@ 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);
Review Comment:
warning: 512 is a magic number; consider replacing it with a named constant
[readability-magic-numbers]
```cpp
: std::max(512,
CpuInfo::num_cores() * 10);
^
```
##########
be/src/vec/exec/scan/scanner_scheduler.cpp:
##########
@@ -112,13 +112,13 @@
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);
Review Comment:
warning: 10 is a magic number; consider replacing it with a named constant
[readability-magic-numbers]
```cpp
: std::max(512,
CpuInfo::num_cores() * 10);
^
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]