Menu

#13 keepalived on 4 servers: moving VIP problems

open
nobody
None
5
2015-01-19
2015-01-19
No

We have 4 servers: one master (#1) + three backup (##2-4)
with RHEL 6.5 / keepalived 1.2.15 / haproxy (monitored process)
Priority of master server #1 is equal to 100, backups with 99,98,97.
This scheme works normally with one master+two backup servers:
-killing haproxy on server #1 -> moving VIP to server #2,
-killing haproxy on server #2 -> moving VIP to server #3.
But killing haproxy server #3 -> VIP NOT moving to sever#4, but moving to server#1.

And one more thing: when priority of master and secondary server is differs more than 50, (100,43,42,41) VIP not move to secondary server when killing haproxy

configs are very simple:

begin

vrrp_script chk_haproxy {
script "killall -0 haproxy"
interval 2
weight 2
}

vrrp_instance VI_1 {
interface bond0
state MASTER #one set to MASTER, three set to BACKUP
virtual_router_id 5
priority 100 # 100 set on master, 99,98,97
virtual_ipaddress {
10.32.0.76
}
track_script {
chk_haproxy
}
}

end

Discussion


Log in to post a comment.