Skip to content

Instantly share code, notes, and snippets.

View gasgasalterego's full-sized avatar

Gaspare gasgasalterego

  • Milan
View GitHub Profile
@gasgasalterego
gasgasalterego / keepalived.conf
Created July 26, 2016 13:56
KeepAlived configuration for automatic switch of virtual IP between two MySQL instances configured in Master/Slave and with circular replica.
##############################################################################################################################################
# This configuration needs 2 fails in order to change from current state to FAULT state and needs 2 success to change from BACKUP state to
# MASTER state.
#
# !!!MOST IMPORTANT!!!
# BEFORE keepalived can be started this file must be poperly edited (see HOW TO section below)
#
# HOW TO
# 1 - Check all the parameters of the script(s) in the "vrrp_script check_mysql" section below are correct
# 2 - unicast_src_ip (IP of the local machine) must be manually edited