Skip to content

Commit dbf3850

Browse files
committed
update
1 parent 85a4bee commit dbf3850

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

be/src/pipeline/exec/file_scan_operator.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ namespace doris::pipeline {
3434

3535
int FileScanLocalState::max_scanners_concurrency(RuntimeState* state) {
3636
/*
37-
* The max concurrency of file scanners is determined by:
37+
* The max concurrency of file scanners for each FileScanLocalState is determined by:
3838
* 1. User specified max_file_scanners_concurrency which is set through session variable.
39-
* 2. The max threads of remote scan scheduler.
39+
* 2. Default: std::max((std::max(512, CpuInfo::num_cores() * 10)), config::doris_scanner_thread_pool_thread_num) * 2 / operator parallelism
40+
*
41+
* If this is a serial operator, the max concurrency should multiply by the number of parallel instances of the operator.
4042
*/
4143
return (state->max_file_scanners_concurrency()
4244
? state->max_file_scanners_concurrency()

be/src/pipeline/exec/scan_operator.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ bool ScanLocalState<Derived>::should_run_serial() const {
7373
}
7474

7575
int ScanLocalStateBase::max_scanners_concurrency(RuntimeState* state) {
76+
/*
77+
* The max concurrency of scanners for each ScanLocalStateBase is determined by:
78+
* 1. User specified max_scanners_concurrency which is set through session variable.
79+
* 2. Default: config::doris_scanner_thread_pool_thread_num / operator parallelism
80+
*
81+
* If this is a serial operator, the max concurrency should multiply by the number of parallel instances of the operator.
82+
*/
7683
return (state->max_scanners_concurrency()
7784
? state->max_scanners_concurrency()
7885
: _state->get_query_ctx()->get_scan_scheduler()->get_max_threads() * 2 /

fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,12 +981,12 @@ public static double getHotValueThreshold() {
981981
"The max threads to read data of ScanNode, "
982982
+ "default 0, use doris_scanner_thread_pool_thread_num in be.conf"
983983
})
984-
public int maxScannersConcurrency = 4;
984+
public int maxScannersConcurrency = 0;
985985

986986
@VariableMgr.VarAttr(name = MAX_FILE_SCANNERS_CONCURRENCY, needForward = true, description = {
987987
"FileScanNode 扫描数据的最大并发",
988988
"The max threads to read data of FileScanNode"})
989-
public int maxFileScannersConcurrency = 16;
989+
public int maxFileScannersConcurrency = 0;
990990

991991
@VariableMgr.VarAttr(name = LOCAL_EXCHANGE_FREE_BLOCKS_LIMIT)
992992
public int localExchangeFreeBlocksLimit = 4;

0 commit comments

Comments
 (0)