diwenzheng commented on issue #1147: URL: https://github.com/apache/servicecomb-service-center/issues/1147#issuecomment-917862265
> 你配置的参数太特殊了, 刚好 client idle timeout = server idle timeout = pull interval = 60s > 因为HTTP一般被用于短连接,通过连接超时实现复用。 当这3个参数相同的时候, 下一次pull, 获取连接, 可能刚好 server 关闭了连接, client未感知到, 使用这个连接发生请求, 就会出现偶然错误。 > > 默认pull interval 是 30s, 只要请求不超时, 基本可以保证链接可以持续复用, 那么概率会降低很多。 理论上3个值分别为 50s , 60s, 30s ,保证 pull interval < client < server, 那么发生的概率会更小, 复用也最好。 > > client idle > pull interval = server idle 的情况,问题概率最高。 确实是这个问题,仔细看了下源码,再结合配置确认是这个原因导致的.是我修改了这里的interval 为60,当时因为我们发现在每秒2000TPS的压力下,发现注册中心会主动让我们的实例下线.所以修改成60,重试次数是6次.但忽略了上面的问题.所以导致了没必要的日志打印 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
