1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-07 00:58:40 +03:00
Martin Schwenke c0939af571 LCP IP allocation algorithm - try harder to find a candidate source node
There's a bug in LCP2.  Selecting the node with the highest imbalance
doesn't always work.  Some nodes can have a high imbalance metric
because they have a lot of IPs.  However, these nodes can be part of a
group that is perfectly balanced.  Nodes in another group with less
IPs might actually be imbalanced.

Instead of just trying the source node with the highest imbalance this
tries them in descending order of imbalance until it finds one where
an IP can be moved to another node.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 574091d5aced5e87aefad52f8bc47aa75c25fbf6)
2011-11-02 10:17:00 +11:00
..
2011-03-21 14:25:53 +11:00
2011-01-24 12:21:58 +11:00
2011-10-24 12:21:55 +11:00
2008-02-04 20:07:15 +11:00
2011-03-23 00:35:23 +01:00