Nginx upstream return name instead of server ip

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


Hello!

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 http://127.0.0.1:81" 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
http://mdounin.ru/


More information about the nginx mailing list