Committed by
Yuta HIGUCHI
MastershipLoadBalancer: listen to RegionEvents
Simplify logic around scheduling a balancing task and listen to RegionEvents. Region Membership updates and Region Updates should also trigger a rebalance. Now, it is possible to queue up another balancing task even if there is one running. They'll still never run in parallel and will still run with at least a few seconds in between (30), but this way we don't ever risk missing an event that makes it necessary to rebalance - not even if we were rebalancing exactly when that event fired. Change-Id: I64e1c6fc5e87f2b1fffbefb54c96303dac55d1d1
Showing
1 changed file
with
59 additions
and
21 deletions
-
Please register or login to post a comment