Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/24683 )

Change subject: KUDU-3761 prefer follower moves cross-location
......................................................................

KUDU-3761 prefer follower moves cross-location

LocationBalancingAlgo had no follower awareness: it picked the
first equally most-loaded source in its internal order. Moving a
leader triggers a leadership transfer that can disrupt clients.

Apply the same two-candidate pattern TwoDimensionalGreedyAlgo
uses: among sources tied on load, prefer one that hosts a
non-leader replica of the target table+tag, falling back to any
tied source when none qualifies.

Extend --prefer_follower_replica_moves and
--auto_rebalancing_prefer_follower_replica_moves to cover the
cross-location path too.

Change-Id: I8a162a227071caf37d572ba60c2bc49608d14e65
Reviewed-on: http://gerrit.cloudera.org:8080/24683
Reviewed-by: Ashwani Raina <[email protected]>
Reviewed-by: Alexey Serbin <[email protected]>
Tested-by: Alexey Serbin <[email protected]>
---
M src/kudu/master/auto_rebalancer.cc
M src/kudu/rebalance/rebalance_algo-test.cc
M src/kudu/rebalance/rebalance_algo.cc
M src/kudu/rebalance/rebalance_algo.h
M src/kudu/tools/rebalancer_tool.cc
5 files changed, 156 insertions(+), 9 deletions(-)

Approvals:
  Ashwani Raina: Looks good to me, approved
  Alexey Serbin: Looks good to me, approved; Verified

--
To view, visit http://gerrit.cloudera.org:8080/24683
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I8a162a227071caf37d572ba60c2bc49608d14e65
Gerrit-Change-Number: 24683
Gerrit-PatchSet: 7
Gerrit-Owner: Gabriella Lotz <[email protected]>
Gerrit-Reviewer: Abhishek Chennaka <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Ashwani Raina <[email protected]>
Gerrit-Reviewer: Gabriella Lotz <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Martonka <[email protected]>

Reply via email to