Welcome! Log In Create A New Profile

Advanced

Re: nginx upstream problem

Maxim Dounin
April 14, 2010 01:24PM
Hello!

On Wed, Apr 14, 2010 at 12:27:33PM -0400, izghitu wrote:

> Hi,
>
> Ok, the failover problem is solved after I applied Maxim's
> suggestions.
>
> Now the current problem is that nginx does not load balance
> equally between servers.
>
> Under heavy load(300 clients) I killed 2 apache servers so
> apache3 was taking all the load. I put back online apache2 and
> now for some reason apache3 was getting few hits and most of the
> load was going to apache2. When I put back online apache1, it
> got most of the load, apache2 taking less load and apache3
> almost no load at all.
>
> Why the strange behavior? How do I make it load balance equally
> between the 3 apache servers? All the apache servers have
> identical hardware and software configuration.

Please do the following:

1. make sure you compiled nginx without third party modules and
patches, and show nginx -V output;

2. show your config;

3. show access logs with $upstream_addr logged to make it clear
that requests are indeed distributed unequally (note that with
with 32 workers and 3 backends you have to provide at least 32 * 3
lines).

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx upstream problem

izghitu April 13, 2010 04:28PM

Re: nginx upstream problem

Maxim Dounin April 13, 2010 06:10PM

Re: nginx upstream problem

izghitu April 13, 2010 06:19PM

Re: nginx upstream problem

izghitu April 14, 2010 10:45AM

Re: nginx upstream problem

Reinis Rozitis April 14, 2010 01:04PM

Re: nginx upstream problem

Maxim Dounin April 14, 2010 01:24PM

Re: nginx upstream problem

izghitu April 14, 2010 11:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready