# Set the action when the node changes to BACKUP state.
to_backup() {
logger "changed to backup"
}
# Set the action when the node changes to MASTER state.
to_master() {
logger "changed to master"