我在本地 Haproxy 节点和一个远程 Haproxy 节点上运行两个 keepAlived 实例,本地 haproxy 节点工作得很好,但对于远程它不会将虚拟 ip 10.8.0.2 添加到远程节点。
vrrp_instance RH_EXT {
state BACKUP
interface tun0
virtual_router_id 12
priority 99
advert_int 1
authentication {
auth_type PASS
auth_pass keepAlived123
}
virtual_ipaddress {
10.8.0.2
}
}
我也看到了这个错误:
Dec 31 19:29:36 pi4-phl Keepalived_vrrp[28178]: (RH_EXT) ip address 10.8.0.1/32 dev tun0, no longer exist
Dec 31 19:29:38 pi4-phl Keepalived_vrrp[28178]: (RH_EXT) ip address associated with VRID 12 not present in MASTER advert : 10.8.0.2
也许那是当所有本地节点都关闭时,它不会从远程节点进行负载平衡。