Proxy_next_upstream_timeout behavior

Hi,

If I set proxy_next_upstream_timeout to 50 second, will nginx break the
current upstream connection at 50 second and fail the request? Or will
it
wait until current one finishes (or read timeout) then decide whether it
should try next upstream and find out it is already more than 50 so fail
the request?

Thanks!
Frank

Hello!

On Fri, Apr 01, 2016 at 08:43:56AM -0700, Frank L. wrote:

If I set proxy_next_upstream_timeout to 50 second, will nginx break the
current upstream connection at 50 second and fail the request?

No.

Or will it
wait until current one finishes (or read timeout) then decide whether it
should try next upstream and find out it is already more than 50 so fail
the request?

Yes.

The proxy_next_upstream_timeout directive only sets the time period
during which the proxy_next_upstream directive is allowed to work. It
does nothing else, and won’t anyhow influence current upstream
connection.


Maxim D.
http://nginx.org/