Benjamin Pineau a écrit :
> 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 ?
Actually, my "half the time" was based on running "time wget -O
/dev/null http://www.sracq.qc.ca/" a few times and looking at the
results. There's nothing statistical in my approach. :)
--
Guillaume Filion
http://guillaume.filion.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx