add config enable_transfer

This commit is contained in:
ZhenNan0
2023-08-25 04:10:28 +00:00
committed by ob-robot
parent 5cfc4e7073
commit dd7ef78699
10 changed files with 59 additions and 42 deletions

View File

@ -614,6 +614,11 @@ DEF_BOOL(enable_rebalance, OB_TENANT_PARAMETER, "True",
"specifies whether the tenant load-balancing is turned on. "
"Value: True:turned on False: turned off",
ObParameterAttr(Section::LOAD_BALANCE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_BOOL(enable_transfer, OB_TENANT_PARAMETER, "True",
"controls whether transfers are allowed in the tenant. "
"This config does not take effect when enable_rebalance is disabled. "
"Value: True:turned on False:turned off",
ObParameterAttr(Section::LOAD_BALANCE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_TIME(balancer_idle_time, OB_TENANT_PARAMETER, "10s", "[10s,]",
"the time interval between the schedules of the tenant load-balancing task. "
"Range: [10s, +∞)",