yy1193889747

Results 1 issues of yy1193889747

- 分析 注:(client和server只建立连接,没有通信) ![不同网段,client是本机,server是k8s容器](https://user-images.githubusercontent.com/20589920/126291593-a3289eff-3bef-4a43-8c4b-ef0e11982eb1.png) ![同个网段,client/server均为k8s容器](https://user-images.githubusercontent.com/20589920/126291992-fd789bb1-ef9a-4c4f-8dfa-b6ee11a888d2.png) 这个问题关键点在于,motan是基于**TCP keep-alive 机制**发心跳的,这个参数linux默认是7200s 间隔75s 发9次 cat /proc/sys/net/ipv4/tcp_keepalive_time cat /proc/sys/net/ipv4/tcp_keepalive_intvl cat /proc/sys/net/ipv4/tcp_keepalive_probes 防火墙断连时间 推断 为1小时,其实只要设置**tcp_keepalive_time 小于防火墙时间就行**。 之前物理机上是30s没报过错, 上容器后默认7200s,不同网段会报错。 建议将这个参数tcp_keepalive_time,写在wiki说明下。