Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/14154 )
Change subject: KUDU-2914: Rebalance tool support moving replicas from some specific tablet servers ...................................................................... KUDU-2914: Rebalance tool support moving replicas from some specific tablet servers Aims to support moving replicas from specific tablet servers, this patch re-uses the '--ignored_tservers' flag and adds a '--move_replicas_from_ignored_tservers' flag to the `kudu rebalance cluster` CLI tool. Once the flag '--ignored_tservers' is specified, the given tablet servers are not considered as a part of the cluster, both their health state and replicas on them are ignored by the rebalancer tool. While if '--move_replicas_from_ignored_tservers' is enabled, replicas on healthy ignored tservers would be moved to other tservers first, and then running the rebalancing on the other healthy tservers in the cluster. Additionally, if we want to move replicas from some specified tablet servers to other servers, the specified tablet servers should be set into maintenance_mode first, otherwise the rebalancer tool would not run. Change-Id: I86cfb740030946c13db1a9ca63d241f4907d6c89 Reviewed-on: http://gerrit.cloudera.org:8080/14154 Tested-by: Kudu Jenkins Reviewed-by: Alexey Serbin <[email protected]> --- M src/kudu/rebalance/rebalance-test.cc M src/kudu/rebalance/rebalance_algo.h M src/kudu/rebalance/rebalancer.cc M src/kudu/rebalance/rebalancer.h M src/kudu/tools/rebalancer_tool-test.cc M src/kudu/tools/rebalancer_tool.cc M src/kudu/tools/rebalancer_tool.h M src/kudu/tools/tool_action_cluster.cc 8 files changed, 804 insertions(+), 105 deletions(-) Approvals: Kudu Jenkins: Verified Alexey Serbin: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/14154 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I86cfb740030946c13db1a9ca63d241f4907d6c89 Gerrit-Change-Number: 14154 Gerrit-PatchSet: 16 Gerrit-Owner: Yifan Zhang <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Hannah Nguyen <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Yifan Zhang <[email protected]>
