Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 </initializer>
... 
</cache>

Design

PlantUML
(*) --> "Init Cache"
--> "Init AR"
--> "Wait for next slot" as schedule
-right-> "Execute AR"
 
if "is out of balance" then
--> [Yes] "Invoke Rebalance"
else
-> [No] schedule
endif
We only want one member to be automatically rebalancing a given region. So each member that starts auto rebalancing will try to get a distributed lock. If the member obtains the lock it will do the auto rebalancing until the member dies. Otherwise it continue to wait for the lock to become available.

...