Nginx upstream return name instead of server ip
mdounin at mdounin.ru
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 http://127.0.0.1:81" instead
> of "proxy_pass http://http_backend" (no more 502 errors).
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.
More information about the nginx