Welcome! Log In Create A New Profile

Advanced

Premature failover to backup upstream

November 29, 2011 09:05PM
Hello!

I am using Nginx 1.0.5 to reverse proxy to a pool of three upstreams. One of them is configured as a backup upstream. From time to time, very rarely, a request will be proxied to the backup upstream when it should not be. The two normal upstreams are completely healthy, and at extremely low load.

Why might this be happening?

I see in the documentation (http://wiki.nginx.org/HttpUpstreamModule#server) that the upstream module will shunt to backup if the other upstreams are "down or busy." What is the definition of "busy" in this context?

Looking in the debug log, I see many many instances of "http upstream recv(): -1 (11: Resource temporarily unavailable)". Is this related?

One thing I haven't tried is to adjust the max_fails parameter, but perhaps I should.
Subject Author Posted

Premature failover to backup upstream

adam November 29, 2011 09:05PM

Re: Premature failover to backup upstream

Piotr Sikora November 29, 2011 09:48PM

Re: Premature failover to backup upstream

adam November 30, 2011 01:39AM

Re: Premature failover to backup upstream

adam November 30, 2011 02:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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