1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00
Martin Schwenke 43e9a7b6c4 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>

(This used to be ctdb commit b5e9a4c50eedb8cc786c52af06352788ca25f51e)
2011-07-29 14:32:07 +10:00
..

This contains a Python simulation of CTDB's IP reallocation algorithm.

It is useful for experimenting with improvements.

To use this on RHEL5 you'll need python2.6 from EPEL
<http://fedoraproject.org/wiki/EPEL>.