gpt4 book ai didi

amazon-web-services - 为什么 AWS ELB(弹性负载均衡器)有时会立即返回 504(网关超时)?

转载 作者:行者123 更新时间:2023-12-04 16:48:53 26 4
gpt4 key购买 nike

ELB 有时会立即(不到 1 秒)向我们的客户返回 504。问题是,它完全是随机的,当我们立即重复请求时,它会按预期运行。

有人有同样的问题或对此有任何想法吗?

最佳答案

这是否回答了您的疑问:

Troubleshooting Elastic Load Balancing: HTTP Errors

HTTP 504: Gateway Timeout

Description: Indicates that the load balancer closed a connection because a request did not complete within the idle timeout period.

Cause: The application takes longer to respond than the configured idle timeout.

Solution: Monitor the HTTPCode_ELB_5XX and Latency CloudWatch metrics. If there is an increase in these metrics, it could be due to the application not responding within the idle timeout period. For details about the requests that are timing out, enable access logs on the load balancer and review the 504 response codes in the logs that are generated by Elastic Load Balancing. If necessary, you can increase your back-end capacity or increase the configured idle timeout so that lengthy operations (such as uploading a large file) can complete.

或者这样: 504 gateway timeout LB and EC2

关于amazon-web-services - 为什么 AWS ELB(弹性负载均衡器)有时会立即返回 504(网关超时)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30984501/

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