我正在将Hystrix集成到一个应用程序中.该应用程序已经投入生产,我们将在沙盒中测试hystrix集成工作,然后再将其推向生产阶段.我的问题是,有没有办法使用一些配置设置打开/关闭hystrix功能?
Ale*_*rra 11
这就是你所需要的:
# Disable Circuit Breaker (Hystrix)
spring:
cloud:
circuit:
breaker:
enabled: false
hystrix:
command:
default:
circuitBreaker:
enabled: false
Run Code Online (Sandbox Code Playgroud)
没有单一的设置.您需要设置多个参数才能禁用Hystrix.
有关配置选项,请参阅https://github.com/Netflix/Hystrix/wiki/Configuration:
hystrix.command.default.execution.isolation.strategy=SEMAPHORE
hystrix.command.default.execution.isolation.semaphore.maxConcurrentRequests=100000 # basically 'unlimited'
hystrix.command.default.execution.timeout.enabled=false
hystrix.command.default.circuitBreaker.enabled=false
hystrix.command.default.fallback.enabled=false
Run Code Online (Sandbox Code Playgroud)
请仔细检查您的Hystrix版本以获取可用参数.
| 归档时间: |
|
| 查看次数: |
9294 次 |
| 最近记录: |