Welcome! Log In Create A New Profile

Advanced

Re: nginx doesn't switch upstream in some cases

Guillaume Filion
February 12, 2010 08:58AM
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
Subject Author Posted

nginx doesn't switch upstream in some cases

Guillaume Filion February 10, 2010 09:24AM

Re: nginx doesn't switch upstream in some cases

Maxim Dounin February 10, 2010 09:40AM

Re: nginx doesn't switch upstream in some cases

Guillaume Filion February 10, 2010 10:38AM

Re: nginx doesn't switch upstream in some cases

Guillaume Filion February 10, 2010 01:42PM

Re: nginx doesn't switch upstream in some cases

Piotr Sikora February 10, 2010 01:50PM

Re: nginx doesn't switch upstream in some cases

Benjamin Pineau February 12, 2010 03:28AM

Re: nginx doesn't switch upstream in some cases

Guillaume Filion February 12, 2010 08:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready