Haproxy负载均衡TPS低于单节点

我有2个后端运行apache2服务器,并在他们和客户之间有一个haproxy。 如果我testing了这些apache2服务器的任何一个ab我得到了一个1500TPS的北部,但是当我进行台架testingHAproxy时,我得到的值小于这个值。 这是没有道理的。

我正在使用简单的循环algorithm进行平衡,并将我的maxconn设置为8000,以便进行较好的测量。

我期望的是接近每个apache2节点(2800TPS)的总tps的tps。 相反,我得到的值比两个apache2节点中的任何一个都less。 可能是什么原因?

我做的板凳testing

ab -t 60 -c 400 haproxyIP:1234 

HEre是HAproxyconfiguration非常标准,但应该完成我所需要的。

  global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy maxconn 8000 user haproxy group haproxy daemon defaults log global mode http option httplog option dontlognull retries 3 maxconn 8000 contimeout 5000 clitimeout 50000 srvtimeout 50000 errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 /etc/haproxy/errors/408.http errorfile 500 /etc/haproxy/errors/500.http errorfile 502 /etc/haproxy/errors/502.http errorfile 503 /etc/haproxy/errors/503.http errorfile 504 /etc/haproxy/errors/504.http listen public :1234 stats enable stats auth username:userpassword balance leastconn server web-1 127.0.0.1:xxxx check server web-2 xx.xx.xx.xx:xxxx check