Advanced CTDB configuration
This section describes advanced CTDB configuration topics that do not fit anywhere else.
CTDB uses private IP addresses to communicate between nodes. Connections are made to IANA assigned TCP port 4379 on each node.
Although not recommended, it is possible to configure a different port to be used for CTDB traffic. This is done by adding a ctdb entry to the
For example, add the following line to
/etc/services to change CTDB to use port 9999:
Note: All nodes in the cluster must use the same port.
CTDB runs event scripts when certain events occur. These event scripts usually reside in the
events.d/ subdirectory of the CTDB configuration directory. This is often
CTDB_EVENT_SCRIPT_DIR configuration variable can be set in the ctdbd configuration file to change the location of CTDB's event scripts.
Event scripts support health monitoring, service management, IP failover, internal CTDB operations and features. They handle events such as
Please see the event scripts that installed by CTDB for examples of how to configure other services to be aware of the HA features of CTDB.
ctdb/config/events.d/README in the Samba source tree for additional documentation on how to write and modify event scripts.