Archaius, hystrix can be configured with parameters and HystrixCommand usage

Default parameter configuration
Fuse parameter
hystrix.command.default.circuitBreaker.enabled = true
hystrix.command.default.circuitBreaker.requestVolumeThreshold = 20
hystrix.command.default.circuitBreaker.sleepWindowInMilliseconds = 5000
hystrix.command.default.circuitBreaker.errorThresholdPercentage = 50
hystrix.command.default.circuitBreaker.forceOpen = false
hystrix.command.default.circuitBreaker.forceClosed = false
Resource Isolation Parameters
hystrix.command.default.execution.isolation.strategy = THREAD
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds = 1000
hystrix.command.default.execution.timeout.enabled = true
hystrix.command.default.execution.isolation.thread.interruptOnTimeout = true
hystrix.command.default.execution.isolation.thread.interruptOnFutureCancel = false
hystrix.command.default.execution.isolation.semaphore.maxConcurrentRequests = 10
service downgrade
hystrix.command.default.fallback.isolation.semaphore.maxConcurrentRequests = 10
hystrix.command.defau

Guess you like

Origin blog.csdn.net/weixin_39355187/article/details/126308745