nginx upstream problem
mdounin at mdounin.ru
Wed Apr 14 21:20:57 MSD 2010
On Wed, Apr 14, 2010 at 12:27:33PM -0400, izghitu wrote:
> Ok, the failover problem is solved after I applied Maxim's
> 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
More information about the nginx