This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 863419fbeab [chore](be) add new be.conf config
workload_policy_check_interval_ms (#60766)
863419fbeab is described below
commit 863419fbeab48f9b26a09dcf384df81d2c489b32
Author: yiguolei <[email protected]>
AuthorDate: Mon Mar 16 19:16:58 2026 +0800
[chore](be) add new be.conf config workload_policy_check_interval_ms
(#60766)
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
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 c28f1f8c33d..131f6f904de 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -1418,6 +1418,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 bb122a25598..b1f76c32fea 100644
--- a/be/src/common/config.h
+++ b/be/src/common/config.h
@@ -1507,6 +1507,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]