Retrying proxy_pass on connection failure or similar

I was wondering if proxy_pass has any ability to retry ECONNREFUSED, or
connection timeout, or similar?

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

Similarly the upstream directive is close to what I want; you can just
the same server name multiple times to allow for multiple retries.
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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs