-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apollo接口报504 #171
Comments
参考 504 Gateway Timeout https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Status/504 是不是中间经过了一层代理? |
@Anilople 应该是有nginx |
今天检查nginx-ingress日志时,也遇到类似的504请求,在configMap中增加如下参数可以解决问题: // proxy-read-timeout 用于设置从上游服务器读取响应的超时时间。默认值为60秒。nginx参数为:proxy_read_timeout
proxy-read-timeout: 65 之所以在60秒以后出现504,与apollo长连接的实现逻辑有关:
也就是说,只要把读取响应体的超时时间设置为大于60秒可以规避该问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
上图的错误,请假下大佬 是什么原因引起的?
The text was updated successfully, but these errors were encountered: