我正在尝试使用 hystrix-javanica 为我的应用程序实现 hystrix。
我已经配置了 hystrix-configuration.properties 如下
hystrix.command.default.execution.isolation.strategy=SEMAPHORE
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=10000
hystrix.command.default.fallback.enabled=true
hystrix.command.default.circuitBreaker.enabled=true
hystrix.command.default.circuitBreaker.requestVolumeThreshold=3
hystrix.command.default.circuitBreaker.sleepWindowInMilliseconds=50000
hystrix.command.default.circuitBreaker.errorThresholdPercentage=50
短路模式工作正常,但我对此有疑问hystrix.command.default.circuitBreaker.requestVolumeThreshold=3
- 它是在 3 次故障后声明开路还是
- 在 3 次并发故障后打开电路。
通过文档链接
有人可以回答吗?