upstream upstream9dbd5491033b477e84564ebe3e516c0b { server aa.bb.cc.d1:443 weight=1 max_conns=10000 max_fails=3 fail_timeout=10; server aa.bb.cc.d2:443 weight=1 max_conns=10000 max_fails=3 fail_timeout=10; server aa.bb.cc.d3:443 weight=1 max_conns=10000 max_fails=3 fail_timeout=10;}
What is considered an unsuccessful attempt is defined by the proxy_next_upstream, fastcgi_next_upstream, uwsgi_next_upstream, scgi_next_upstream, memcached_next_upstream, and grpc_next_upstream directives.
an error occurred while establishing a connection with the server, passing a request to it, or reading the response header
Limits the time during which a request can be passed to the next server. The 0 value turns off this limitation.
The only chance to get this feature work, is to reduce `max_fails` and `fail_timeout` and let `proxy_next_upstream` do the job.
max_fails=3 fail_timeout=10;