config: introduce sharding.rebalancer_mode
Closes #9657 @TarantoolBot document Title: The `sharding.rebalancer_mode` option The `sharding.rebalancer_mode` option can have one of three values: `manual`, `auto` and `off`. Default value is `auto`. If the option is set to `manual`, one of the replicasets must have the `rebalancer` sharding role. The rebalancer will be in this replicaset. If the option value is `auto` and there are no replicasets with the sharding role `rebalancer`, the replicaset with rebalancer will be selected automatically among all replicasets. If the value of the parameter is `auto` and one of the replicasets has the sharding role `rebalancer`, then the rebalancer will be in that replicaset. If the option value is `off`, rebalancing will be disabled regardless of whether a replicaset with the sharding role `rebalancer` exists or no such replicaset exists.
Showing
- changelogs/unreleased/gh-9657-option-rebalancer_mode.md 3 additions, 0 deletionschangelogs/unreleased/gh-9657-option-rebalancer_mode.md
- src/box/lua/config/configdata.lua 1 addition, 0 deletionssrc/box/lua/config/configdata.lua
- src/box/lua/config/instance_config.lua 17 additions, 0 deletionssrc/box/lua/config/instance_config.lua
- test/config-luatest/cluster_config_schema_test.lua 1 addition, 0 deletionstest/config-luatest/cluster_config_schema_test.lua
- test/config-luatest/instance_config_schema_test.lua 2 additions, 0 deletionstest/config-luatest/instance_config_schema_test.lua
- test/config-luatest/vshard_test.lua 52 additions, 0 deletionstest/config-luatest/vshard_test.lua
Loading
Please register or sign in to comment