Skip to content

Instantly share code, notes, and snippets.

@jayjanssen
Created October 29, 2012 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayjanssen/3975836 to your computer and use it in GitHub Desktop.
Save jayjanssen/3975836 to your computer and use it in GitHub Desktop.
keepalived
vrrp_script chk_haproxy {
script "killall -0 haproxy"
interval 2
weight 5
}
vrrp_instance VI_PXC_DB {
interface eth1
state MASTER
virtual_router_id 60
priority 101
virtual_ipaddress {
10.2.46.130
10.2.46.131
10.2.46.132
10.2.46.133
}
track_script {
chk_haproxy
}
track_interface {
eth1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment