当前位置:网站首页>grpc系列3-自定义端镜像GOAWAY with error code ENHANCE_YOUR_CALM and debug data equal to “too_many_pings“
grpc系列3-自定义端镜像GOAWAY with error code ENHANCE_YOUR_CALM and debug data equal to “too_many_pings“
2022-08-08 23:20:00 【愚昧之山绝望之谷开悟之坡】
客户端问题
E0806 11:12:22.190935590 29 chttp2_transport.cc:1113] Received a GOAWAY with error code ENHANCE_YOUR_CALM and debug data equal to "too_many_pings"
参考
探针官方必须配置参数解释:https://grpc.github.io/grpc/core/md_doc_keepalive.html
所有配置参数表格:https://github.com/grpc/grpc/blob/v1.46.x/include/grpc/impl/codegen/grpc_types.h
解决方案
Why am I receiving a GOAWAY with error code ENHANCE_YOUR_CALM?
A server sends a GOAWAY with ENHANCE_YOUR_CALM if the client sends too many misbehaving pings as described in A8-client-side-keepalive.md. Some scenarios where this can happen are -
if a server has GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS set to false while the client has set this to true resulting in keepalive pings being sent even when there is no call in flight.
if the client's GRPC_ARG_KEEPALIVE_TIME_MS setting is lower than the server's GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS.
服务端还需要配置这两个参数
On the server-side, the following additional channel arguments need to be configured -
GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS
If there are no data/header frames being sent on the transport, this channel argument on the server side controls the minimum time (in milliseconds) that gRPC Core would expect between receiving successive pings. If the time between successive pings is less that than this time, then the ping will be considered a bad ping from the peer. Such a ping counts as a ‘ping strike’. On the client side, this does not have any effect.
GRPC_ARG_HTTP2_MAX_PING_STRIKES
This arg controls the maximum number of bad pings that the server will tolerate before sending an HTTP2 GOAWAY frame and closing the transport. Setting it to 0 allows the server to accept any number of bad pings.
由于 GRPC_ARG_KEEPALIVE_TIME_MS配置成了200000ms=200s,避免被识别成错误的探针,需要将
GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS(默认是300s)设置成小于200s,可以配置成150s


边栏推荐
猜你喜欢
随机推荐
Free ARP
flutter 基本类写法
如何在Android中使用Realm数据库
Share | design based on MCU P0 mouth to drive the LED flashing
容斥原理
Casbin 进行权限控制验证
待完善:tf.name_scope() 和 tf.variable_scope()的区别
二叉树 层次遍历 及例题
wps表格分两页断开怎么办?wps表格分两页断开的解决方法
LeetCode:最长有效括号
【Tensorflow2】tensorflow1.x-tensorflow2.x一些接口的转变
Qt入门(五)——文件操作、热键和鼠标的读取(txt窗口的实现)
线性筛求积性函数
(2022牛客多校五)H-Cutting Papers(签到)
(2022牛客多校四)H-Wall Builder II(思维)
2022牛客多校六 J-Number Game(简单推理)
wps备份与恢复在哪里?
Kubernetes资源编排系列之四: CRD+Operator篇
sess.restore() 和 tf.import_meta_graph() 在使用时的一些关联
机器学习之知识点(一)









