[improvement](tablet clone) fix balanced new replica will be removed when load txn continuously and none-stop (#24845)

This commit is contained in:
yujun
2023-09-25 22:51:08 +08:00
committed by GitHub
parent 8ee2e40812
commit 60ce1ed8a3
3 changed files with 122 additions and 29 deletions

View File

@ -929,6 +929,18 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, masterOnly = true)
public static long tablet_repair_delay_factor_second = 60;
/**
* clone a tablet, further repair timeout.
*/
@ConfField(mutable = true, masterOnly = true)
public static long tablet_further_repair_timeout_second = 20 * 60;
/**
* clone a tablet, further repair max times.
*/
@ConfField(mutable = true, masterOnly = true)
public static int tablet_further_repair_max_times = 5;
/**
* the default slot number per path for hdd in tablet scheduler
* TODO(cmy): remove this config and dynamically adjust it by clone task statistic