Assume the following scenario:
errorThresholdPercentage
is set to 80%errorThresholdPercentage
would ever go above 80% (at most it would go up to 50% only)Is there any way to configure Hystrix to flip open the circuit down to the instance level?
There is no way to configure Hystrix circuit breaker for the instance level.
Instead, you can achieve it by using Ribbon with Hystrix.
There is a IRule called AvailabilityFilteringRule
that is used as default. It has its own circuit breaker that is not related to hystrix. It will filter out the problematic instance from the instance list during certain seconds. You can adjust this behavior with the below ribbon properties.
niws.loadbalancer.default.circuitTripTimeoutFactorSeconds (default 10secs)
niws.loadbalancer.default.connectionFailureCountThreshold (default 3 failures)
niws.loadbalancer.default.circuitTripMaxTimeoutSeconds (default 30secs)
By using ribbon + hystrix, you can achieve two levels of circuit breaker like below.
You can find some description about this here