-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Grpc time out for 15 minutes #7587
Comments
This was posted to Gitter as well, and I was answering it there. In short, v1.20.0 is unsupported as it is a year and a half old. But it seems you can try enabling keepAliveTime on the managedChannelBuilder to 5 minutes or so and see if that changes the behavior. |
grpc调用go服务,每次生产上只要go服务端一更新pod,就会出现15分钟左右请求失败,后面自然就好了,问下是同一个问题吗 |
Different clustergrpc.clients.my-grpc-server-app.address=dns:///my-grpc-server-app.example.svc.cluster.local:1234 如果是域名可以参考这个加上dns:/// |
@ejona86 i was going through this blog https://blog.cloudflare.com/when-tcp-sockets-refuse-to-die/ If i set keepAliveTime to 5 minutes how that will solve the problem.? if i have continuous traffic every second. |
Enabling keepAliveTime enables an http2-level PING which would detect the broken connection, and it also enables TCP_USER_TIMEOUT. |
Seems like this is resolved. If not, comment, and it can be reopened. |
Hey, i am using mentioned version of grpc libraries. so we have 2 services running on grpc , service A create a managed channel during startup and uses it throughout lifetime of pod. service A receives heavy load (100 req/s) . sometimes we keep receiving timeout error for around 15 min , no call reaches service B. after 15 min automatically this resolves, after doing some browsing i checked this could be becasue of TCP_USER_TIMEOUT being set to around 15 min by default. so can someone confirm if this is the same issue, or something else which i am missing
The text was updated successfully, but these errors were encountered: