HAProxy max在〜10,700连接

我正在和宗强testingejabberd。 我的EC2实例设置如下:

  • Tsung:c3.xlarge
  • ejabberd:c3.2xlarge
  • HAProxy:t1.mirco

当我让Tsung直接与ejabberd实例交谈时,我可以在5分钟内轻松获得预期的35K +连接。 当我把HAProxy放在他们两个之间的时候,我得到了10K的最大连接数。 没有HAProxy错误日志,CPU运行9%,Mem在HAProxy实例上的使用率为18%。 ulimit在实例上正确设置。 有没有什么明显的我在这里失踪? 任何build议最受欢迎。

我的HAProxyconfiguration如下:

global log 127.0.0.1 local1 notice log 127.0.0.1 local0 notice maxconn 512000 user haproxy group haproxy defaults log global mode tcp option tcplog option dontlognull retries 3 option redispatch #timeout connect 5000 #timeout client 10000 #timeout server 10000 timeout connect 5s timeout client 24h timeout server 24h listen stats :80 mode http stats enable stats uri /haproxy?stats stats realm Strictly\ Private stats auth xx:xx listen ejabberd_proxy :5222 maxconn 512000 mode tcp retries 2 option redispatch option tcplog option tcpka option clitcpka option srvtcpka balance leastconn server ejabberd1 ip_1:5222 check fall 10 server ejabberd2 ip_2:5222 check fall 10 

为haproxy节点尝试更大的实例大小。 t1.micro实例具有可怕的networking和IO性能,如果出现这些问题,我不会感到惊讶。