mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-06 01:41:26 +01:00
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