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/01/19 03:29:41 UTC

[GitHub] [servicecomb-java-chassis] yanshaohui opened a new issue #2203: RuleExt自定义负载均衡策略,choose方法的servers引用经常发生变化?

yanshaohui opened a new issue #2203:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2203


   业务基于一致性hash自定义负载均衡策略,在public ServiceCombServer choose(List<ServiceCombServer> servers, Invocation invocation) 执行时,判断servers引用变化则认为服务发现变化,此时触发重建hash环。
   但部分实例servers引用变化非常频繁触发hash环重建,部分实例却非常稳定。
   经过比对,引用变化的实例servers中的endpoints列表(ip:port)字符串值并没有发生变化。
   


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2203: RuleExt自定义负载均衡策略,choose方法的servers引用经常发生变化?

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2203:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2203#issuecomment-763578001


   ServiceCombServer 里面有 instance id, 可以看下这个是否变化。 不知道是不是某个负载均衡策略选择的列表不一样。


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2203: RuleExt自定义负载均衡策略,choose方法的servers引用经常发生变化?

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2203:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2203#issuecomment-763324256


   你说的频繁是多久?通常只有存在实例变化的的时候,列表才会变化。 (即实例上下线)


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] yanshaohui commented on issue #2203: RuleExt自定义负载均衡策略,choose方法的servers引用经常发生变化?

Posted by GitBox <gi...@apache.org>.
yanshaohui commented on issue #2203:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2203#issuecomment-763471655


   每秒钟都会有两三次的刷新,但完全相同配置的其他实例就非常稳定没有刷新。
   可以确定的是,刷新前后,列表实际的producer list(ip:port)没有变化。


----------------------------------------------------------------
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.

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