This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 285337e3d63 branch-4.0: [chore](be) add new be.conf config
workload_policy_check_interval_ms #60766 (#61390)
285337e3d63 is described below
commit 285337e3d6370b41a62129eae7ff5f8d7fa4c7a0
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Mar 17 08:58:04 2026 +0800
branch-4.0: [chore](be) add new be.conf config
workload_policy_check_interval_ms #60766 (#61390)
Cherry-picked from #60766
Co-authored-by: yiguolei <[email protected]>
---
be/src/common/config.cpp | 1 +
be/src/common/config.h | 1 +
be/src/runtime/workload_management/workload_sched_policy_mgr.cpp | 4 +++-
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index dd6f80c4a48..63055c0392f 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -1365,6 +1365,7 @@ DEFINE_mBool(enable_be_proc_monitor, "false");
DEFINE_mInt32(be_proc_monitor_interval_ms, "10000");
DEFINE_Int32(workload_group_metrics_interval_ms, "5000");
+DEFINE_Int32(workload_policy_check_interval_ms, "500");
// Ingest binlog work pool size, -1 is disable, 0 is hardware concurrency
DEFINE_Int32(ingest_binlog_work_pool_size, "-1");
diff --git a/be/src/common/config.h b/be/src/common/config.h
index 94e89394275..930367cdf17 100644
--- a/be/src/common/config.h
+++ b/be/src/common/config.h
@@ -1460,6 +1460,7 @@ DECLARE_String(doris_cgroup_cpu_path);
DECLARE_mBool(enable_be_proc_monitor);
DECLARE_mInt32(be_proc_monitor_interval_ms);
DECLARE_Int32(workload_group_metrics_interval_ms);
+DECLARE_Int32(workload_policy_check_interval_ms);
// This config controls whether the s3 file writer would flush cache
asynchronously
DECLARE_Bool(enable_flush_file_cache_async);
diff --git a/be/src/runtime/workload_management/workload_sched_policy_mgr.cpp
b/be/src/runtime/workload_management/workload_sched_policy_mgr.cpp
index 4802704c136..cba5ad50b56 100644
--- a/be/src/runtime/workload_management/workload_sched_policy_mgr.cpp
+++ b/be/src/runtime/workload_management/workload_sched_policy_mgr.cpp
@@ -19,6 +19,7 @@
#include <memory>
+#include "common/config.h"
#include "runtime/fragment_mgr.h"
#include "runtime/workload_management/resource_context.h"
@@ -76,7 +77,8 @@ void WorkloadSchedPolicyMgr::update_workload_sched_policy(
}
void WorkloadSchedPolicyMgr::_schedule_workload() {
- while (!_stop_latch.wait_for(std::chrono::milliseconds(500))) {
+ while (!_stop_latch.wait_for(
+
std::chrono::milliseconds(config::workload_policy_check_interval_ms))) {
// 1 get query resource context
std::vector<std::weak_ptr<ResourceContext>> list;
_exec_env->fragment_mgr()->get_runtime_query_info(&list);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]