Welcome! Log In Create A New Profile


Work-around for upstream_fair bug?

March 18, 2010 10:30AM
Hi all,

We have nginx set up to reverse proxy to a couple of apache instances. Every so often apache takes longer than 60 seconds to respond, and then nginx pulls that server out of rotation and does not add it back in. We are using the upstream_fair plugin, as it does a nicer job of round robining, however we are clearly running into this bug:

"Upstream servers are not reintroduced to the pool after becoming available"

This bug has been open for 16 months. Doesn't seem like it's going to get fixed any time soon. Are there any known workarounds? I tried bumping up max_fails from the default of one, however that didn't seem to help - any single slow response from apache pulls that server out of rotation. Here is the relevant section of our nginx.conf:

upstream www.foo.com {
server public-web1:8000 weight=2 max_fails=2;
server public-web2:8000 weight=3 max_fails=2;

Any suggestions? Thanks in advance,

Subject Author Posted

Work-around for upstream_fair bug?

russellneufeld March 18, 2010 10:30AM

Re: Work-around for upstream_fair bug?

Grzegorz Nosek March 18, 2010 12:12PM

Re: Work-around for upstream_fair bug?

russellneufeld March 18, 2010 01:04PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
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