LVS备在1s内发生主备切换导致虚拟IP无法访问

LVS在生产系统中已经使用4年多了,最近发生了备在1s内进行备-主-备的切换,导致外部无法访问。
主的配置:
vrrp_instance VI_jklvs {
state MASTER
interface eth0
virtual_router_id 60
garp_master_delay 5
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass 111111
}
virtual_ipaddress {
172.17.1.234
172.17.1.220
172.17.1.218
}
}
vrrp_instance VI_jkweb {
state MASTER
interface eth0
virtual_router_id 61
garp_master_delay 5
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass 111111
}
virtual_ipaddress {
172.17.1.244/24
}
}
vrrp_instance VI_jkweb {
state BACKUP
interface eth0
virtual_router_id 62
garp_master_delay 5
priority 80
advert_int 1
authentication {
auth_type PASS
auth_pass 111111
}
virtual_ipaddress {
172.17.1.245/24
}
}

备的配置:
vrrp_instance VI_jklvs {
state BACKUP
interface eth0
virtual_router_id 60
garp_master_delay 5
priority 70
advert_int 1
authentication {
auth_type PASS
auth_pass 111111
}
virtual_ipaddress {
172.17.1.234
172.17.1.220
172.17.1.218
}
}
vrrp_instance VI_jkweb {
state BACKUP
interface eth0
virtual_router_id 61
garp_master_delay 5
priority 70
advert_int 1
authentication {
auth_type PASS
auth_pass 111111
}
virtual_ipaddress {
172.17.1.244/24
}
}
vrrp_instance VI_jkweb {
state BACKUP
interface eth0
virtual_router_id 62
garp_master_delay 5
priority 40
advert_int 1
authentication {
auth_type PASS
auth_pass 111111
}
virtual_ipaddress {
172.17.1.245/24
}
}

发生故障时:
主的日志:
Dec 3 08:52:52 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jklvs) Received lower prio advert, forcing new election
Dec 3 08:52:52 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.234
Dec 3 08:52:52 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.220
Dec 3 08:52:52 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.218
Dec 3 08:52:52 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jkweb) Received lower prio advert, forcing new election
Dec 3 08:52:52 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jkweb) Sending gratuitous ARPs on eth0 for 172.17.1.244
Dec 3 08:52:52 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jkweb) Received lower prio advert, forcing new election
Dec 3 08:52:52 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jkweb) Sending gratuitous ARPs on eth0 for 172.17.1.245
Dec 3 08:52:53 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jklvs) Received lower prio advert, forcing new election
Dec 3 08:52:53 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.234
Dec 3 08:52:53 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.220
Dec 3 08:52:53 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.218
Dec 3 08:52:54 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jkweb) Received lower prio advert, forcing new election
Dec 3 08:52:54 localhost Keepalived_vrrp[12831]: VRRP_Instance(VI_jkweb) Sending gratuitous ARPs on eth0 for 172.17.1.244

备的日志:
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) Transition to MASTER STATE
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) Transition to MASTER STATE
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) Transition to MASTER STATE
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) Entering MASTER STATE
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) setting protocol VIPs.
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.234
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.220
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) Sending gratuitous ARPs on eth0 for 172.17.1.218
Dec 3 08:52:53 localhost Keepalived_healthcheckers[9790]: Netlink reflector reports IP 172.17.1.234 added
Dec 3 08:52:53 localhost Keepalived_healthcheckers[9790]: Netlink reflector reports IP 172.17.1.220 added
Dec 3 08:52:53 localhost Keepalived_healthcheckers[9790]: Netlink reflector reports IP 172.17.1.218 added
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) Entering MASTER STATE
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) setting protocol VIPs.
Dec 3 08:52:53 localhost Keepalived_healthcheckers[9790]: Netlink reflector reports IP 172.17.1.244 added
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) Sending gratuitous ARPs on eth0 for 172.17.1.244
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) Received higher prio advert
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) Entering BACKUP STATE
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) Received higher prio advert
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) Entering BACKUP STATE
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jklvs) removing protocol VIPs.
Dec 3 08:52:53 localhost Keepalived_healthcheckers[9790]: Netlink reflector reports IP 172.17.1.234 removed
Dec 3 08:52:53 localhost Keepalived_healthcheckers[9790]: Netlink reflector reports IP 172.17.1.220 removed
Dec 3 08:52:53 localhost Keepalived_healthcheckers[9790]: Netlink reflector reports IP 172.17.1.218 removed
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) Received higher prio advert
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) Entering BACKUP STATE
Dec 3 08:52:53 localhost Keepalived_vrrp[9791]: VRRP_Instance(VI_jkweb) removing protocol VIPs.
Dec 3 08:52:53 localhost Keepalived_healthcheckers[9790]: Netlink reflector reports IP 172.17.1.244 removed

Forums:

主备切换有延时应该是正常的吧?

vrrp 走交换机的吧,交换机丢包延迟? 心跳线改成主备直连吧

randomness