Skip to content
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

ERROR: [transport] Client received GoAway with error code ENHANCE_YOUR_CALM and debug data equal to ASCII "too_many_pings". #524

Open
erdong01 opened this issue Sep 28, 2024 · 2 comments

Comments

@erdong01
Copy link

erdong01 commented Sep 28, 2024

2024/09/27 09:52:10 ERROR: [transport] Client received GoAway with error code ENHANCE_YOUR_CALM and debug data equal to ASCII "too_many_pings".
2024/09/27 09:53:30 ERROR: [transport] Client received GoAway with error code ENHANCE_YOUR_CALM and debug data equal to ASCII "too_many_pings".
2024/09/27 09:56:30 ERROR: [transport] Client received GoAway with error code ENHANCE_YOUR_CALM and debug data equal to ASCII "too_many_pings".
2024/09/27 10:13:30 ERROR: [transport] Client received GoAway with error code ENHANCE_YOUR_CALM and debug data equal to ASCII "too_many_pings".
2024/09/27 14:21:31 ERROR: [transport] Client received GoAway with error code ENHANCE_YOUR_CALM and debug data equal to ASCII "too_many_pings".

部署在k8s 环境

客户端是go包 github.com/dtm-labs/client/dtmgrpc

@yedf2
Copy link
Contributor

yedf2 commented Sep 28, 2024

这个看起来是网络相关的问题,跟dtm本身相关性不大

@erdong01
Copy link
Author

问chatGpt 说:

您遇到的错误消息表明,由于过多的 ping 操作,gRPC 客户端已被服务器断开连接。以下是对该错误的详细解释:

•	GoAway 帧:在 HTTP/2(gRPC 使用的协议)中,GoAway 帧由服务器发送,用于表示它正在优雅地关闭连接。
•	ENHANCE_YOUR_CALM 错误代码:这是一个 gRPC 特定的错误代码(数值为 420),表示客户端的请求过于频繁或激进。
•	too_many_pings 调试数据:此消息指出客户端发送的 ping 请求超过了服务器允许的频率。

可能原因:

1.	频繁的 Keepalive Ping:客户端被配置为过于频繁地发送 keepalive ping。
2.	Keepalive 设置错误:客户端的 keepalive 参数配置不当。
3.	网络问题:不稳定的网络导致客户端认为连接已丢失,从而触发更多的 ping 请求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants