Nginx upstream return name instead of server ip

Maxim Dounin mdounin at
Wed Sep 29 17:21:50 UTC 2021


On Wed, Sep 29, 2021 at 10:41:20AM -0400, rjvbzeoibvpzie wrote:

> You are right, those lines are logged (i've forced upstreams to fail by
> stopping them).
> But i can't see such problem using "proxy_pass" instead
> of "proxy_pass http://http_backend" (no more 502 errors).
> Strange...

That's because max_fails/fail_timeout are not used when only one 
server is available in an upstream group, and "no live upstreams" 
errors cannot happen.

Maxim Dounin

More information about the nginx mailing list