请问章博士,我用的LVS群集发生故障

我的环境是用keepalived+lvs+nginx 用 ipvsadm -Ln命令查看分发情况,刚开始做完是可以查看的,不知道后来为什么就看不到了,ActiveConn InActConn状态都为0,只有重新启动keepalived的master后,才会显示正常,现在问的问题是,ipvsadm -Lnc无链接显示
[root@imdb_195_222 ~]# ipvsadm -Lnc
IPVS connection entries
pro expire state source virtual destination
[root@imdb_195_222 ~]#
[root@imdb_195_222 ~]# ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.0.219:80 rr persistent 20
-> 192.168.0.218:80 Route 3 0 0
-> 192.168.0.220:80 Route 3 0 0
,但是不正常显示也可以访问到站点,但是只轮询到一台218的服务器上,message日志文件没有错误报警也没有异常,如下是我的配置文件
MASTER:
! Configuration File forkeepalived
global_defs {
notification_email {
xieping@xxx.com
zhanghangyu@xxx.com
}
notification_email_from root@localhost
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id QQ_MASTER
}
vrrp_instance VI_2 {
state MASTER
interface eth0
virtual_router_id 70
priority 60
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.0.219
}
}
virtual_server 192.168.0.219 80 {
lb_algo rr
lb_kind DR
persistence_timeout 20
protocol TCP
real_server 192.168.0.218 80 {
weight 3
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
}
}
real_server 192.168.0.220 80 {
weight 3
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
}

BACKUP:
! Configuration File forkeepalived
global_defs {
notification_email {
xieping@xxx.com
zhanghangyu@xxx.com
}
notification_email_from root@localhost
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id QQ_BACKUP
}
vrrp_instance VI_2 {
state BACKUP
interface eth0
virtual_router_id 70
priority 50
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.0.219
}
}
virtual_server 192.168.0.219 80 {
lb_algo rr
lb_kind DR
persistence_timeout 20
protocol TCP
real_server 192.168.0.218 80 {
weight 3
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
}
}
real_server 192.168.0.220 80 {
weight 3
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
}

Forums:

是客户端的real脚本ARP绑定的问题。

你说的real 脚本ARP 绑定问题 请问怎么解决的,谢谢

randomness