lvs架构:ipvsadm+heartbeat
三台服务器,一台主负载均衡(ip:192.168.3.2,vip:192.168.3.121),一台备份负载均衡兼rs1(ip:192.168.2.2),另一台rs2(ip:192.168.1.2)
问题1:用ab做压力测试时,大多数都是rs2这台机器的连接数是rs1连接数的3倍左右,比如我在两台客户端运行:ab -n 10000 -c 1000 http://192.168.3.121/index.html(index.html文件11K),在调度器上用[root@loadbalancer init.d]# ipvsadm -lcn|grep 192.168.1.2|wc
14482 86892 1123153
[root@loadbalancer log]# ipvsadm -lcn|grep 192.168.2.2|wc
7043 42258 547424
调度算法用rr,wrr,wlc都试过,即使我把192.168.2.2这台服务器的权值设高,结果都差不多是这样,也有一两次是192.168.2.2比192.168.1.2多的。
问题2:当我在客户端运行ab -n 10000 -c 1000 http://192.168.3.121/test.rpm(这个test.rpm文件有10M),
This is ApacheBench, Version 2.0.41-dev apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.3.121 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
apr_recv: Connection refused (111)
Total of 6246 requests completed
总是运行不完,这是不是跟rs的性能有关?
问题3:lvs/tun模式的rs系统可以是windows2K,windows2003吗,谢谢了!

lvs/tun 在win2003是怎么安装IP tun的?
win2003的路由和远程访问不支持ip隧道,大家是怎么做的?