Hi,

On 06.03.2013 16:27, Alexandru Florescu wrote:
>
> Hi,
> I have a 3 server architecture, a HAproxy that sends balanced traffic
> to 2 Nginx servers.
>
> I noticed that if I run "ab -n 1000 -c 100" directly on the Nginx
> server I get response times between 40 and 80ms
> If I run the same test via HAproxy I receive results between 120 and
> 4000ms. And this is I get lucky as I can even wait for 30seconds to
> get all the replies back from HAproxy server.
>
Well 120 up to 200ms would be okay, but 4000ms is not. Could you disable
Firewalling, e.g. unload all neccessary modules on the HAProxy Machine?

> I've been struggling to tune the kernel params and other things for
> days now but I still cannot make this work properly.
> I noticed that on HAproxy server I have all the time at least 20K
> TIME_WAIT connections ( netstat -a -n|grep TIME_WAIT|wc -l)
> while on the Nginx servers that number is about 600 for each one.
>
TIME_WAITS are usually not a problem. Please look at the nice guide
(
http://www.exceliance.fr/en/ART-2006-making%20applications%20scalable%20with%20LB.pdf
)

> I suspect that is because of this that the service doesn't always
> perform well but I would surely appreciate any advice from you.
> Also, let me know what kernel params or configuration files you might
> need me to share with you in order to get a better understanding.
>
Would you mind, share your sysctl settings?
> Thank you,
> Alex
>
>
cheers
thomas

Reply via email to