You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/09/13 02:45:24 UTC

[GitHub] [servicecomb-service-center] liubao68 edited a comment on issue #1147: service-center与etcd集群之间的交互,偶尔会出现,或者获取缓存时间超长

liubao68 edited a comment on issue #1147:
URL: https://github.com/apache/servicecomb-service-center/issues/1147#issuecomment-917790987


   你配置的参数太特殊了, 刚好 client idle timeout = server idle timeout = pull interval = 60s
   因为HTTP一般被用于短连接,通过连接超时实现复用。 当这3个参数相同的时候, 下一次pull, 获取连接, 可能刚好 server 关闭了连接, client未感知到, 使用这个连接发生请求, 就会出现偶然错误。 
   
   默认pull interval 是 30s, 只要请求不超时, 基本可以保证链接可以持续复用, 那么概率会降低很多。 理论上3个值分别为 50s , 60s, 30s ,保证 client < server, 那么发生的概率会更小。 
   
    pull interval > client idle > server idle 的情况,概率最高。 


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org