Welcome! Log In Create A New Profile

Advanced

Re: Hold requests long enough for me to restart upstream?

Cliff Wells
March 20, 2009 08:50PM
<876498.2240.qm@web46309.mail.sp1.yahoo.com> <bd9320b30903201326p133e3045m726b07d9c422fa79@mail.gmail.com> <1237581376.3604.7.camel@portable-evil> <bd9320b30903201348l512a2aa4k70f8da9f0e9c8a6c@mail.gmail.com> <1237588334.3604.17.camel@portable-evil> <bd9320b30903201724x1e2c1400xd060a55b3b728f2@mail.gmail.com>

On Fri, 2009-03-20 at 17:24 -0700, mike wrote:
> On Fri, Mar 20, 2009 at 3:32 PM, Cliff Wells <cliff@develix.com> wrote:
>
> > This won't work. The problem is that his backend isn't unresponsive,
> > it's *down*. That is, the backend socket isn't even open. Timeouts
> > are for sockets that are "open but unresponsive", not sockets that are
> > "closed".
> >
> > In this case Nginx would try each backend and *instantly* go to the next
> > one until it ran out of backends and then it would throw a 50x error.
>
> Idea: perhaps a directive to tell it how long to wait before skipping
> to the next one for actual connection refused errors? (I would imagine
> that would be what fail_timeout is... I figured -any- failure is
> considered)

It's actually "how long until Nginx decides the backend failed". In the
case of a closed socket, there's no decision to be made: it's known
instantly to be failed.

The fundamental problem here is that the OP is trying to "fake" HA. If
he wants HA, he needs to have more than one backend to failover to.

Regards,
Cliff
Subject Author Posted

Hold requests long enough for me to restart upstream?

Rt Ibmer March 19, 2009 06:28PM

Re: Hold requests long enough for me to restart upstream?

Rt Ibmer March 20, 2009 04:36PM

Re: Hold requests long enough for me to restart upstream?

mike March 20, 2009 04:42PM

Re: Hold requests long enough for me to restart upstream?

Cliff Wells March 20, 2009 04:56PM

Re: Hold requests long enough for me to restart upstream?

mike March 20, 2009 05:07PM

Re: Hold requests long enough for me to restart upstream?

Cliff Wells March 20, 2009 06:54PM

Re: Hold requests long enough for me to restart upstream?

mike March 20, 2009 08:41PM

Re: Hold requests long enough for me to restart upstream?

Cliff Wells March 20, 2009 08:50PM

Re: Hold requests long enough for me to restart upstream?

Cliff Wells March 20, 2009 08:54PM

Re: Hold requests long enough for me to restart upstream?

Cliff Wells March 20, 2009 05:08PM

Re: Hold requests long enough for me to restart upstream?

Rt Ibmer March 20, 2009 08:37PM

Re: Hold requests long enough for me to restart upstream?

Cliff Wells March 20, 2009 08:37PM

Re: Hold requests long enough for me to restart upstream?

mike March 20, 2009 08:40PM

Re: Hold requests long enough for me to restart upstream?

Manlio Perillo March 21, 2009 07:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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