Hystrix没有为假装客户打开电路。我正在测试服务器,它总是很慢,具有以下配置:
hystrix.circuitBreaker.requestVolumeThreshold: 4
hystrix.circuitBreaker.errorThresholdPercentage: 50
hystrix.circuitBreaker.sleepWindowInMilliseconds: 7000
hystrix.metrics.rollingStats.timeInMilliseconds: 15000
hystrix.metrics.rollingStats.numBuckets: 5
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 31000
feign:
hystrix:
enabled: true
organizationService:
ribbon:
MaxAutoRetries: 3
MaxAutoRetriesNextServer: 0
OkToRetryOnAllOperations: true
ConnectTimeout: 10000
ReadTimeout: 1000
我可以看到4次重试和java.net.SocketTimeoutException:之后读取超时错误但是当我检查Turbine时,它显示操作的Circuit Closed。