NGINX and 5xx

Sergey Kandaurov pluknet at nginx.com
Wed May 19 17:10:05 UTC 2021


> On 19 May 2021, at 19:51, ladushka <nginx-forum at forum.nginx.org> wrote:
> 
> Hello Friends,
> is there way to pass 5xx to client?
> to be clear: Not mark upstream server as down, instead of this pass all 5xx
> to client (ignore all errors)
> 

This break into the two parts: passing errors, such as 5xx, to client
and preventing upstream server from marking as down.

You may want to adjust proxy_next_upstream to reconsider what an
unsuccessful attempt is used to be, to pass 5xx to client.
Besides that, an unsuccessful attempt counts toward max_fails.
max_fails=0 is used to disable such an accounting.

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#max_fails

-- 
Sergey Kandaurov



More information about the nginx mailing list