This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vrrp_script chk_haproxy { | |
script "killall -0 haproxy" # verify the pid existance. `killall -0 haproxy` or `pidof haproxy` | |
interval 2 # check every 2 seconds | |
weight 2 # add 2 points of prio if OK | |
} | |
vrrp_instance VI_1 { | |
interface eth0 # interface to monitor | |
state MASTER | |
virtual_router_id 51 # Assign one ID for this route |