hystrix:
command:
default:
execution:
isolation:
thread:
#调用者的超时时间,单位ms
timeoutInMilliseconds: 10000
circuitBreaker:
#是否启动熔断器,默认为true,false表示不要引入Hystrix。
enabled: true
#当在配置时间窗口内达到此数量后,才会根据其他条件进行短路
requestVolumeThreshold: 20
#出错百分比阈值,当达到此阈值后,开始短路。默认50%)
errorThresholdPercentage: 50%
#短路多久以后开始尝试是否恢复,单位ms,默认5s
sleepWindowInMilliseconds: 5000
Hystrix常见配置参数
最新推荐文章于 2024-05-13 14:03:18 发布