On 03/07/2013 07:09 PM, Thomas Heil wrote:
Hi,

On 07.03.2013 17:14, Alexandru Florescu wrote:
On 03/07/2013 05:46 PM, Lukas Tribus wrote:
When I try with tw_recycle = 0 then I start to get a lot of TIME_WAIT
connections and performance degrades quite quickly so I cannot remove it
Dont use it!
Easier said than done, if I turn it off then I run into much bigger issues....

for now
This indicates you are running out of source ports and it is
probably why the latency increases with the number of simultaneous connections.
By "source ports" you mean exactly what?
It may be that but as you've seen in my sysctl.conf I already added this
net.ipv4.ip_local_port_range = 1025 65000

that you would need more ip addresses haproxy can bind to and issue requests from there.
Are you sure? I ask you this as /netstat -a -n|grep TIME_WAIT|wc -l/ shows only around 4K connections.


Okay, so can you give us more specs about the hardware you are using? (haproxy, nginx ...), how they are connected
and what type of network cards work in this machines?
hardware: AMD Athlon(tm) 64 Processor 3700+, 2.2Ghz, 1GB RAM
HAproxy uses a 100Mb card, the Nginx servers use 1Gb cards. Servers are hosted in the same datacenter, 2ms ping time among them.
I run Nginx 1.2.3.
Let me know what other info you may find useful so I can share it with you.

Thank you,
Alex

Reply via email to