github-actions[bot] commented on code in PR #61731:
URL: https://github.com/apache/doris/pull/61731#discussion_r3072898703
##########
be/src/exec/scan/scanner_scheduler.cpp:
##########
@@ -84,7 +84,9 @@ Status
ScannerScheduler::submit(std::shared_ptr<ScannerContext> ctx,
}
return scanner_ref->is_eos();
};
- SimplifiedScanTask simple_scan_task = {work_func, ctx, scan_task};
+ SimplifiedScanTask simple_scan_task = {
+ work_func, ctx, scan_task,
+ config::enable_slow_scanner_pool &&
scanner_delegate->_scanner->is_slow_task()};
Review Comment:
`slow_task` is only consumed by
`ThreadPoolSimplifiedScanScheduler::submit_scan_task()`. The default
workload-group path in `WorkloadGroup::upsert_thread_pool_no_lock()`
instantiates `TaskExecutorSimplifiedScanScheduler` when
`enable_task_executor_in_internal_table` /
`enable_task_executor_in_external_table` are true, and both configs default to
`true`. In that path this flag is ignored, so slow and fast scans still share
one executor in the default deployment.
##########
be/src/exec/scan/scanner_scheduler.h:
##########
@@ -178,12 +182,22 @@ class ThreadPoolSimplifiedScanScheduler
MOCK_REMOVE(final) : public ScannerSched
.set_max_queue_size(queue_size)
.set_cgroup_cpu_ctl(_cgroup_cpu_ctl)
.build(&_scan_thread_pool));
+ RETURN_IF_ERROR(ThreadPoolBuilder(_sched_name, _workload_group)
+ .set_min_threads(min_thread_num)
+ .set_max_threads(max_thread_num)
+ .set_max_queue_size(queue_size)
Review Comment:
This allocates a second pool with the same min/max/queue size as the
existing scan pool. `scan_thread_num` / `max_remote_scan_thread_num` are still
passed in as if they describe the whole scheduler budget, so enabling this
feature can run up to 2x the configured scanner threads for a workload group.
`get_active_threads()` / `get_queue_size()` also still report only
`_scan_thread_pool`, so scheduler accounting underestimates real occupancy.
--
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]