[feature](replica) Add drop replica safely on backend (#30303)

This commit is contained in:
yujun
2024-01-25 09:32:23 +08:00
committed by yiguolei
parent 49f879f8fd
commit 3d22f9cfc8
14 changed files with 172 additions and 22 deletions

View File

@ -1064,6 +1064,11 @@ public class Config extends ConfigBase {
@ConfField(masterOnly = true, mutable = true)
public static int balance_slot_num_per_path = 1;
// when execute admin set replica status = 'drop', the replica will marked as user drop.
// will try to drop this replica within time not exceeds manual_drop_replica_valid_second
@ConfField(masterOnly = true, mutable = true)
public static long manual_drop_replica_valid_second = 24 * 3600L;
// This threshold is to avoid piling up too many report task in FE, which may cause OOM exception.
// In some large Doris cluster, eg: 100 Backends with ten million replicas, a tablet report may cost
// several seconds after some modification of metadata(drop partition, etc..).