S1031575
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 17 Oct 2011 01:11:54 +0000 (12:11 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 17 Oct 2011 04:20:48 +0000 (15:20 +1100)
commitfa72d7d50beb7155234a8e15fa5c8443a3c34eaf
tree00e73e966b4b85efc1684af0b42437451c9eb948
parent1d48b3f6cb27d84425863f576c7bbd3e1a8f9863
S1031575

When performing addip   we dont allow "gratious failvoer"  which can, due to timing, and depending on which order the "ctdb addip ..." is called on the nodes lead to imperfect balancing of the ip addresses when addigng several at the same time.

This patch makes sure that once the ip address is added to a node, any node,  this ip address is released from the node currently hosting the address and there will possibly be a failover after a short while while performing the rebalance of the ip address.

This means that when performing "ctdb addip ..." and adding it to a new node, this could affect/disrupt the i/o on this address to the node currently hosting the address,  but
it will mean we do get a more even distribution after the assignment.

This is based on the assumption that it will be more common to "add completely new ip to a set of nodes"  rather than "add an ip address that is already in service to a brand new node"
tools/ctdb.c