keepalived一个问题

装了一个lvs+keeepalived的双击集群。
发现每次backup机器都自动改成master.但实际上master还是正常工作的
查了一个master机器上的日志:

Apr 7 11:46:54 ubuntu71 Keepalived_healthcheckers: Using MII-BMSR NIC polling thread...
Apr 7 11:46:54 ubuntu71 Keepalived_healthcheckers: Registering Kernel netlink reflector
Apr 7 11:46:54 ubuntu71 Keepalived_healthcheckers: Registering Kernel netlink command channel
Apr 7 11:46:54 ubuntu71 Keepalived_healthcheckers: Configuration is using : 7838 Bytes
Apr 7 11:46:54 ubuntu71 Keepalived_vrrp: Using MII-BMSR NIC polling thread...
Apr 7 11:46:54 ubuntu71 Keepalived_vrrp: Registering Kernel netlink reflector
Apr 7 11:46:54 ubuntu71 Keepalived_vrrp: Registering Kernel netlink command channel
Apr 7 11:46:54 ubuntu71 Keepalived_vrrp: Registering gratutious ARP shared channel
Apr 7 11:46:54 ubuntu71 Keepalived_vrrp: Configuration is using : 34341 Bytes
Apr 7 11:46:54 ubuntu71 Keepalived_healthcheckers: Activating healtchecker for service [192.168.1.1
44:80]
Apr 7 11:46:56 ubuntu71 Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATE

Apr 7 12:08:48 ubuntu71 Keepalived_vrrp: VRRP_Instance(VI_1) Received lower prio advert, forcing new election

加粗部分不停出现

backup机器上的keepalived日志:
Apr 7 11:21:23 xianguo159 Keepalived_healthcheckers: Using MII-BMSR NIC polling thread...
Apr 7 11:21:23 xianguo159 Keepalived_healthcheckers: Registering Kernel netlink reflector
Apr 7 11:21:23 xianguo159 Keepalived_healthcheckers: Registering Kernel netlink command channel
Apr 7 11:21:23 xianguo159 Keepalived_healthcheckers: Configuration is using : 7958 Bytes
Apr 7 11:21:23 xianguo159 Keepalived_vrrp: Using MII-BMSR NIC polling thread...
Apr 7 11:21:23 xianguo159 Keepalived_vrrp: Registering Kernel netlink reflector
Apr 7 11:21:23 xianguo159 Keepalived_vrrp: Registering Kernel netlink command channel
Apr 7 11:21:23 xianguo159 Keepalived_vrrp: Registering gratutious ARP shared channel
Apr 7 11:21:23 xianguo159 Keepalived_vrrp: Configuration is using : 34461 Bytes
Apr 7 11:21:23 xianguo159 Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE
Apr 7 11:21:23 xianguo159 Keepalived_healthcheckers: Activating healtchecker for service [192.168.1
.144:80]

Apr 7 11:21:39 xianguo159 Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATE
Apr 7 11:21:44 xianguo159 Keepalived_vrrp: VRRP_Instance(VI_1) Entering MASTER STATE
加粗部分显示 直接转成master.

keepalived的配置文件:

global_defs {
router_id LVS_DEVEL
}

vrrp_instance VI_1 {
state BACKUP //state MASTER
interface eth0
virtual_router_id 55
priority 100 // priority 200
advert_int 10
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.1.80
}
virtual_server 192.168.1.80 80 {
delay_loop 6
lb_algo wlc
lb_kind DR
persistence_timeout 50
protocol TCP

real_server 192.168.1.144 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
connect_port 80
}
}
}

master上就两个地方不一样。

紧急再线求助!!

Forums:

主备负载均衡器 没有正常通信的原因。

我也出现了同样的问题
但是如果我把主备更换一下 就又好了
如果是通信的问题应该调换也是不可以的吧
楼上说的负载均衡器是指的是lvs么?