Nginx upstream not balancing properly

Hi,

I am running latest nginx and using it for load balancing. I am using
the
upstream fair module.

I have 3 backend servers running apache. The problem is that when I
start a
load test the balancing is not done correctly. The first server in the
upstream gets most of the traffic and the other 2 get very few traffic.
If I
restart nginx then all 3 backend servers start to get the same ammount
of
traffic

Am I doing something wrong?

Please advise

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,231585,231585#msg-231585

On Oct 10, 2012, at 6:50 PM, izghitu wrote:

Am I doing something wrong?

Please advise

First of all, do you mean our standard least_conn functionality or some
3rd party module?

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#least_conn

On Oct 10, 2012, at 7:24 PM, izghitu wrote:

Hi,

This is what I am using
http://wiki.nginx.org/HttpUpstreamFairModule

Can you try your setup with
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#least_conn

which is part of standard distributions since 1.3.1 and 1.2.2-stable?

Hi,

This is what I am using
http://wiki.nginx.org/HttpUpstreamFairModule

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,231585,231587#msg-231587

Thanks for your input. I will test with that one and let you know how it
goes

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,231585,231591#msg-231591

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs