add a new tunable : DeterministicIPs that makes the allocation of
authorRonnie Sahlberg <sahlberg@ronnie>
Tue, 16 Oct 2007 02:15:02 +0000 (12:15 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Tue, 16 Oct 2007 02:15:02 +0000 (12:15 +1000)
commitf0ca221f235731542090d8a6c86f2b7cd2ce2f96
tree700b88022fe24e7d3be0f492319f4c8418f92cde
parent7145764b2d217f88a723dcb0ffd4e5a1567d64cf
add a new tunable : DeterministicIPs  that makes the allocation of
public addresses to nodes deterministic.

Activate it by adding CTDB_SET_DeterministicIPs=1 in /etc/sysconfig/ctdb

When this is set,    the first entry in /etc/ctdb/public_addresses will
always be hosted by node 0, when that node is available, the second
entry by node1 and so on.

This tunable allows the allocation of addresses to become very
unbalanced and is only for debugging/testing use.
Beware, this feature requires that /etc/ctdb/public_addresses are
identical on all the nodes in the cluster.
include/ctdb_private.h
server/ctdb_takeover.c
server/ctdb_tunables.c