IP allocation simulation - add -H/-S options for hard/soft imbalance limit.
authorMartin Schwenke <martin@meltin.net>
Thu, 21 Jul 2011 11:45:46 +0000 (21:45 +1000)
committerMartin Schwenke <martin@meltin.net>
Fri, 29 Jul 2011 04:32:07 +0000 (14:32 +1000)
commitb5e9a4c50eedb8cc786c52af06352788ca25f51e
tree6b110bc120a42a8d3612d4a7c7dd0e50c6cb843c
parent22b14e1a887f0479cc75ed9027af5cc24797f217
IP allocation simulation - add -H/-S options for hard/soft imbalance limit.

An imbalance exceeding the hard limit, as specified by -H (and
defaulting to 1), now causes termination when -x is specified.

Imbalances exceeding the soft limit, as specified by -S (and
defaulting to 1), are counted and printed in the statistics summary.

A side-effect is that imbalances less than 2 are no longer rounded
down to 0, since we want to see them in the stats.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/takeover/ctdb_takeover.py