[fix](tablet sched) disable disk balance for single replica (#29576)

This commit is contained in:
yujun
2024-01-07 19:21:42 +08:00
committed by GitHub
parent eb2b22bff1
commit 2d89b7aed4
2 changed files with 11 additions and 0 deletions

View File

@ -1022,6 +1022,12 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, masterOnly = true)
public static boolean disable_disk_balance = false;
/**
* if set to false, TabletScheduler will not do disk balance for replica num = 1.
*/
@ConfField(mutable = true, masterOnly = true)
public static boolean enable_disk_balance_for_single_replica = false;
// if the number of scheduled tablets in TabletScheduler exceed max_scheduling_tablets
// skip checking.
@ConfField(mutable = true, masterOnly = true)