wsrep_notify_cmd is set, the server will try to invoke this command every time cluster membership or local node status changes. This can be used to (re)configure load balancers, raise alarm and so on.
The command will be passed one or more of the following options:
Only the node in “Synced” state should accept connections. See galera_node_fsm for additional information on node states.
Each member list element has a format:
<node UUID>/<node name>/<incoming address>
<node UUID>— is an unique node ID automatically assigned to it by wsrep provider.
<node name>— node name as set in
<incoming address>— address for client connections as set in
Here's the example script that updates two tables on the local node with changes happening in the cluster.