ctdb: Add "home_nodes" file to deterministic IP allocation
authorVolker Lendecke <vl@samba.org>
Fri, 4 Aug 2023 12:47:51 +0000 (14:47 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 10 Oct 2023 14:17:19 +0000 (14:17 +0000)
commita6b66661c754f8ecf7c6c8a43ff015257adf5d0a
treecacd560f37621fab0a0559a401150bc0a57a0e83
parentea9cbbd8309fd8514e4a9a4aa80749e8adfff0bc
ctdb: Add "home_nodes" file to deterministic IP allocation

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
ctdb/doc/ctdb-tunables.7.xml
ctdb/server/ipalloc_deterministic.c
ctdb/tests/UNIT/takeover/det.004.sh [new file with mode: 0755]
ctdb/tests/UNIT/takeover/det.005.sh [new file with mode: 0755]
ctdb/tests/UNIT/takeover/det.006.sh [new file with mode: 0755]