nginx doesn't switch upstream in some cases

Benjamin Pineau ben at zouh.org
Fri Feb 12 11:23:09 MSK 2010


Piotr Sikora a écrit :
>> What this directive in place, when one reverse proxy is down, half the
>> requests take 0.2sec to return and half take 2.2sec to return. This is
>> good enough for me. :)
> 
> You should consider using "max_fails" and "fail_timeout":
> http://wiki.nginx.org/NginxHttpUpstreamModule#server

Well, that's strange. According to the documentation, the default values
for those are "max_fails=1 fail_timeout=10s".

With those default settings (and with "timeout" in proxy_next_upstream),
Guillaume shouldn't hit the timeout on half the requests, but rather
only once in a while, right ?

How can this happen ?



More information about the nginx mailing list