Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 491 Bytes
global_defs {
router_id DBPOOL_01
}
vrrp_script chk_redis {
script "killall -0 redis-server"
interval 2
}
vrrp_instance VI_ETH0 {
interface eth0
virtual_router_id 100
nopreempt
priority 200
advert_int 1
state BACKUP
track_script {
chk_redis
}
virtual_ipaddress {
172.16.0.180
}
notify_master "/usr/bin/sudo -u redis /opt/redis.sh -m"
notify_backup "/usr/bin/sudo -u redis /opt/redis.sh -s"
notify_fault "/usr/bin/sudo -u redis /opt/redis.sh -k"
}