[feature](executor) Add some check when create workload group/workload schedule policy (#29236)

This commit is contained in:
wangbo
2023-12-29 15:41:16 +08:00
committed by GitHub
parent d6dcf962a9
commit c3c34e10bb
8 changed files with 147 additions and 43 deletions

View File

@ -2318,6 +2318,18 @@ public class Config extends ConfigBase {
@ConfField(mutable = true)
public static int workload_action_interval_ms = 10000; // 10s
@ConfField(mutable = true, masterOnly = true)
public static int workload_max_policy_num = 25;
@ConfField(mutable = true, masterOnly = true)
public static int workload_max_condition_num_in_policy = 5;
@ConfField(mutable = true, masterOnly = true)
public static int workload_max_action_num_in_policy = 5; // mainly used to limit set session var action
@ConfField(mutable = true, masterOnly = true)
public static int workload_group_max_num = 15;
@ConfField(description = {"查询be wal_queue 的超时阈值(ms)",
"the timeout threshold of checking wal_queue on be(ms)"})
public static int check_wal_queue_timeout_threshold = 180000; // 3 min