首页 > 其他 > 详细

Doker GRPC "Connection reset by peer"

时间:2019-05-28 16:33:02      阅读:356      评论:0      收藏:0      [点我收藏+]

https://success.docker.com/article/ipvs-connection-timeout-issue

 

https://forums.docker.com/t/setting-tcp-keepalive-time-param-for-containers/41496

Approach 1:

  • Modified the docker-compose.yml.tmpl and set the value using sysctl.
    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:

  • Tried to modify the value via sysctl.
    Result:
    Failed since the procfs is a read-only file system on the container.

Can someone help me on how to set this param effectively on the container?

 

Sysctl support for docker swarm cluster added in Docker 19.03.0

 

Doker GRPC "Connection reset by peer"

原文:https://www.cnblogs.com/coolyuwk/p/10937944.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!