Gabriella Lotz has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/24613


Change subject: KUDU-3760 expose follower-move flag in rebalancer
......................................................................

KUDU-3760 expose follower-move flag in rebalancer

The follower-move preference added for the auto-rebalancer changed the
default of TwoDimensionalGreedyAlgo's constructor to prefer follower
moves. The CLI rebalance tool default-constructs that algorithm, so it
started preferring follower moves silently, with no way to turn it off.

Add a --rebalancing_prefer_follower_replica_moves flag (default true, to
match both the auto-rebalancer's flag and the new constructor default)
and plumb it through to the algorithm. This keeps the current behavior
but makes it explicit and overridable from the command line.

Adds a parameterized test that runs the tool with the flag set both ways
and checks the cluster still ends up balanced.

Change-Id: I5f1b03da71b11af82f18ff9e20dcaa676b185645
---
M src/kudu/tools/rebalancer_tool-test.cc
M src/kudu/tools/rebalancer_tool.cc
2 files changed, 83 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/13/24613/1
--
To view, visit http://gerrit.cloudera.org:8080/24613
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f1b03da71b11af82f18ff9e20dcaa676b185645
Gerrit-Change-Number: 24613
Gerrit-PatchSet: 1
Gerrit-Owner: Gabriella Lotz <[email protected]>

Reply via email to