Doker GRPC "Connection reset by peer"

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=30
      - net.ipv4.tcp_keepalive_probes=10
      - net.ipv4.tcp_keepalive_time=600

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

 ------------------------

然而并什么有什么用,暂时用Polly重试。

转载于:https://www.cnblogs.com/coolyuwk/p/10937944.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值