请问章博士,ipvs显示异常 该如何解决

[root@zhangji ~]# ipvsadm
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP xx.xx.xxx.204:http rr
-> xx.xx.xxx.206:http Route 1 3 0
-> xx.xx.xxx.203:http Local 1 0 3
[root@zhangji ~]# ipvsadm -l -c
IPVS connection entries
pro expire state source virtual destination
TCP 01:42 FIN_WAIT 123.112.16.217:47480 xx.xx.xxx.204:http xx.xx.xxx.203:http
TCP 14:39 ESTABLISHED 123.112.16.217:47477 xx.xx.xxx.204:http xx.xx.xxx.206:http
TCP 14:41 ESTABLISHED 123.112.16.217:47479 xx.xx.xxx.204:http xx.xx.xxx.206:http
TCP 01:41 FIN_WAIT 123.112.16.217:47478 xx.xx.xxx.204:http xx.xx.xxx.203:http
TCP 14:43 ESTABLISHED 123.112.16.217:47481 xx.xx.xxx.204:http xx.xx.xxx.206:http
TCP 01:16 FIN_WAIT 123.112.16.217:47470 xx.xx.xxx.204:http xx.xx.xxx.203:http

策略是rr ,轮回,这样检测方便些 以往 ipvsadm显示 都是inactconn上 两台机器3 3分
现在怎么都是206的activeconn 和203的inactconn 一样的呢
apache都是contos自带的http 没有任何修改

Forums:

这个不是问题,所谓rr并不是完全的200 对 200 100对100

显示中根据cpu的处理能力不同,网络环境的传输响应不同,会有少量偏差,你多进行几百次测试就知道了。

比如:

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 203.100.192.200:http wrr
-> 203.100.192.190:http Route 1 53 5134
-> 203.100.192.183:http Route 2 354 10362
-> 203.100.192.127:http Route 2 22 10335
[root@180-LVS1 ~]# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP xxx.xxx.xxx.xxx:http wrr
-> xxx.xxx.xxx.xxx:http Route 1 46 5141
-> xxx.xxx.xxx.xxx:http Route 2 357 10368
-> xxx.xxx.xxx.xxx:http Route 2 26 10332
[root@180-LVS1 ~]# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
\TCP xxx.xxx.xxx.xxx:http wrr
-> xxx.xxx.xxx.xxx:http Route 1 34 5158
-> xxx.xxx.xxx.xxx:http Route 2 354 10374
-> xxx.xxx.xxx.xxx:http Route 2 37 10323
[root@180-LVS1 ~]# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP xxx.xxx.xxx.xxx:http wrr
-> xxx.xxx.xxx.xxx:http Route 1 31 5166
-> xxx.xxx.xxx.xxx:http Route 2 370 10358
-> xxx.xxx.xxx.xxx:http Route 2 36 10322
[root@180-LVS1 ~]# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP xxx.xxx.xxx.xxx:http wrr
-> xxx.xxx.xxx.xxx:http Route 1 11 5167
-> xxx.xxx.xxx.xxx:http Route 2 238 10463
-> xxx.xxx.xxx.xxx:http Route 2 13 10309