summaryrefslogtreecommitdiff
path: root/ctdb/server/ipalloc_deterministic.c
AgeCommit message (Collapse)AuthorFilesLines
2023-10-10ctdb: Add "home_nodes" file to deterministic IP allocationVolker Lendecke1-0/+127
With a file "home_nodes" next to "public_addresses" you can assign public IPs to specific nodes when using the deterministic allocation algorithm. Whenever the "home node" is up, the IP address will be assigned to that node, independent of any other deterministic calculation. The line 192.168.21.254 2 in the file "home_nodes" assigns the IP address to node 2. Only when node 2 is not able to host IP addresses, 192.168.21.254 undergoes the normal deterministic IP allocation algorithm. Signed-off-by: Volker Lendecke <vl@samba.org> add home_nodes Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Oct 10 14:17:19 UTC 2023 on atb-devel-224
2023-10-10ctdb: Align variable signednessVolker Lendecke1-1/+2
ipalloc_state->num_nodes is uint32_t Reviewed-by: Ralph Boehme <slow@samba.org>
2016-12-19ctdb-takeover: IPAllocAlgorithm replaces LCP2PublicIPs, DeterministicIPsMartin Schwenke1-1/+2
Introduce a single new tunable IPAllocAlgorithm to set the IP allocation algorithm. This defaults to 2 for LCP2 IP address allocation. Tunables LCP2PublicIPs and DeterministicIPs are obsolete. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-07-04ctdb-ipalloc: Make no_ip_failback a booleanMartin Schwenke1-1/+1
No need to expose tunable values that far down. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-01-13ctdb-ipalloc: Split IP allocation into its own build subsystemMartin Schwenke1-0/+62
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>