Welcome! Log In Create A New Profile

Advanced

Re: upstream retries with a single server

Maxim Dounin
November 20, 2010 06:16PM
Hello!

On Sat, Nov 20, 2010 at 09:48:15PM +0530, Arvind Jayaprakash wrote:

> Hello,
> From the way I understand if there are 'n' servers listed as part of
> an upstream block & upstream returns failure (as defined by
> proxy_next_upstream), then nginx retries the same request on another
> upstream server and this repeats till every upstream is tried once
> (excluding those that are considered to be down).

Yes.

> If an upstream block is defined with exactly one active server, I see
> that the request gets retried on the same upstream in case of a failure
> upto 'max_retries' number of times. Logically, I'd expect it to try just
> once and then give up if upstream fails to provide a suitable response.

There is no such thing as 'max_retries'. As in previous case, all
(i.e. the only one in this case) upstreams are tried once and then
appropriate error returned.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

upstream retries with a single server

anomalizer November 20, 2010 11:22AM

Re: upstream retries with a single server

Maxim Dounin November 20, 2010 06:16PM

Re: upstream retries with a single server

anomalizer November 21, 2010 08:24AM

Re: upstream retries with a single server

Maxim Dounin November 21, 2010 12:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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