[branch-2.1](memory) pick reserve memory and workload group (#40543)

1. pick #38494
2. pick #39862
3. remove vdata_stream_test, master has been removed
This commit is contained in:
Xinyi Zou
2024-09-09 21:16:06 +08:00
committed by GitHub
parent 68d1064aa9
commit 354967c09f
12 changed files with 150 additions and 120 deletions

View File

@ -400,7 +400,7 @@ void Daemon::wg_weighted_memory_ratio_refresh_thread() {
// Refresh weighted memory ratio of workload groups
while (!_stop_background_threads_latch.wait_for(
std::chrono::milliseconds(config::wg_weighted_memory_ratio_refresh_interval_ms))) {
doris::ExecEnv::GetInstance()->workload_group_mgr()->refresh_wg_weighted_memory_ratio();
doris::ExecEnv::GetInstance()->workload_group_mgr()->refresh_wg_weighted_memory_limit();
}
}