Welcome! Log In Create A New Profile

Advanced

Retrying proxy_pass on connection failure or similar

Kevin Burke
February 14, 2014 04:52PM
Hello,
I was wondering if proxy_pass has any ability to retry ECONNREFUSED, or a
connection timeout, or similar?

It looks like proxy_next_upstream is fairly close to what I want, though I
would rather not configure a second server; I just want the initial request
to be more robust.

Similarly the upstream directive is close to what I want; you can just add
the same server name multiple times to allow for multiple retries. However,
this gets more complicated if you are passing in a backend URI via a
variable (say, with X-Accel-Redirect).

Would be nice to have a `proxy_connection_retries` or similar.

--
Kevin Burke
phone: 925.271.7005 | kev.inburke.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Retrying proxy_pass on connection failure or similar

Kevin Burke February 14, 2014 04:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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