lvs udp服务配置多个 但只能识别第一个服务

我起了三个udp服务,想要通过lvs进行负载均衡。我的配置如下:
virtual_server vip 10514 {
delay_loop 6
lb_algo rr
lb_kind TUN
nat_mask 255.255.255.0
persistence_timeout 0
protocol UDP

real_server ip1 10514 {
weight 1
notify_down "/usr/local/goldmine/scripts/jobkeeper/keep-XXX.sh warn zookeeper XXX:ip1:10514:down"
UDP_CHECK {
connect_timeout 10
nb_get_retry 3
delay_before_retry 1
connect_port 10514
}
}

real_server ip2 10514 {
weight 1
notify_down "/usr/local/goldmine/scripts/jobkeeper/keep-XXX.sh warn zookeeper XXX:ip2:10514:down"
UDP_CHECK {
connect_timeout 10
nb_get_retry 3
delay_before_retry 1
connect_port 10514
}
}

real_server ip3 10514 {
weight 1
notify_down "/usr/local/goldmine/scripts/jobkeeper/keep-XXX.sh warn zookeeper XXX:ip3:10514:down"
UDP_CHECK {
connect_timeout 10
nb_get_retry 3
delay_before_retry 1
connect_port 10514
}
}

}

服务端启动时连接的是vip ,但是通过ipvsadm查看时,发现只有ip1一个服务,如果把ip2放在第一个,就只显示ip2。
不知道是什么原因,请各位大师帮忙看一下。在此谢过了!
我会在线等的!

Forums:

randomness