https://success.docker.com/article/ipvs-connection-timeout-issue
https://forums.docker.com/t/setting-tcp-keepalive-time-param-for-containers/41496
Approach 1:
sysctls:
- net.ipv4.tcp_keepalive_intvl=45
- net.ipv4.tcp_keepalive_probes=15
- net.ipv4.tcp_keepalive_time=295
Result:
Did not work. I can see the value set as the env parameter, however netstat shows that the socket is not picking up that value.
Approach 2:
Can someone help me on how to set this param effectively on the container?
Doker GRPC "Connection reset by peer"
原文:https://www.cnblogs.com/coolyuwk/p/10937944.html