[fix](cooldown) Rewrite update cooldown conf (#16488)

Remove error-prone CooldownJob, and use CooldownConfHandler to update Tablet's cooldown conf.
Some bug fix about cooldown.
This commit is contained in:
plat1ko
2023-02-09 09:12:55 +08:00
committed by GitHub
parent e6b0d94459
commit e1f1386395
47 changed files with 402 additions and 1046 deletions

View File

@ -802,13 +802,6 @@ public class Config extends ConfigBase {
*/
@ConfField(mutable = true, masterOnly = true)
public static int alter_table_timeout_second = 86400 * 30; // 1month
/**
* Maximal timeout of push cooldown conf request.
*/
@ConfField(mutable = false, masterOnly = true)
public static boolean cooldown_single_remote_file = false;
@ConfField(mutable = false, masterOnly = true)
public static int push_cooldown_conf_timeout_second = 600; // 10 min
/**
* If a backend is down for *max_backend_down_time_second*, a BACKEND_DOWN event will be triggered.
* Do not set this if you know what you are doing.
@ -1932,11 +1925,10 @@ public class Config extends ConfigBase {
public static int max_same_name_catalog_trash_num = 3;
/**
* The storage policy is still under developement.
* Disable it by default.
* NOTE: The storage policy is still under developement.
*/
@ConfField(mutable = true, masterOnly = true)
public static boolean enable_storage_policy = false;
@ConfField(mutable = false, masterOnly = true)
public static boolean enable_storage_policy = true;
/**
* This config is mainly used in the k8s cluster environment.