Using the Notification Command (wsrep_notify_cmd)
Galera Cluster can trigger a custom script on membership or state changes through wsrep_notify_cmd, passing status, view ID, member list, and Primary Component flag as arguments.
System
Description
Configuration
[mariadb]
...
wsrep_notify_cmd = /path/to/your/script.shPassed Parameters
Position
Parameter
Description
Status Values ($1)
$1)View ID ($2)
$2)Members List Format ($3)
$3)Example Script
Last updated
Was this helpful?

