gpt4 book ai didi

Nginx上游负载均衡: auto retrying of 502's?

转载 作者:行者123 更新时间:2023-12-03 03:46:00 27 4
gpt4 key购买 nike

如果我为多个上游反向代理设置了 nginx 负载平衡,其中一个出现故障,我的用户会收到 502 错误消息,还是 nginx 会负责重新路由到已启动的上游?

最佳答案

来自 documentation

If with an attempt at the work with the server error occurred, then the request will be transmitted to the following server and then until all workers of server not are tested. If successful answer is not succeeded in obtaining from all servers, then to client will be returned the result of work with the last server.

关于Nginx上游负载均衡: auto retrying of 502's?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15525112/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com