Welcome! Log In Create A New Profile

Advanced

upstream retries with a single server

November 20, 2010 11:22AM
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).

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.

Could someone tell me what is the expected behaviour?

_______________________________________________
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: 300
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