ngx_http_upstream_test_next u->peer.tries > 1

crasyangel nginx-forum at
Fri Nov 24 08:23:30 UTC 2017

assume all servers always fail in upstream

nginx would call ngx_http_upstream_next when u->peer.tries > 1, and call
ngx_http_upstream_finalize_request directly when  u->peer.tries == 1

it would not pass NGX_PEER_FAILED to u->

so how peer->fails increase when last retry fail?

Posted at Nginx Forum:,277494,277494#msg-277494

More information about the nginx mailing list