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/02/22 07:50:49 UTC

[GitHub] [servicecomb-java-chassis] ai930 removed a comment on issue #2239: 490 超时未触发隔离,是我的配置有问题吗?帮看看呗

ai930 removed a comment on issue #2239:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2239#issuecomment-783166400


   按照你的提示,我调试了下。要在服务生产者下的配置增加 `servicecomb.loadbalance.isolation.enabled: true` 才有效。不过第一次请求还是有十久次请求被分发到有问题的节点。后续再请求就不会分发过去了
   服务消费端的配置是
   ```
   servicecomb.loadbalance.retryEnabled: true
   servicecomb.loadbalance.retryOnNext: 1
   servicecomb.loadbalance.retryOnSame: 0
   servicecomb.loadbalance.retryHandler: default
   
   servicecomb.loadbalance.isolation.strategy.name: WeightedResponse
   servicecomb.loadbalance.isolation.enabled: true
   servicecomb.loadbalance.isolation.errorThresholdPercentage: 1 #serverStats.getFailedRate() < settings.errorThresholdPercentage
   servicecomb.loadbalance.isolation.enableRequestThreshold: 1 #serverStats.getTotalRequests() < settings.enableRequestThreshold
   servicecomb.loadbalance.isolation.singleTestTime: 1800000
   servicecomb.loadbalance.isolation.continuousFailureThreshold: 1 #serverStats.getContinuousFailureCount() >= settings.continuousFailureThreshold
   ```


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