Sentinel
Sentinel copied to clipboard
The total bucket count always is one for ExceptionCircuitBreaker and ResponseTimeCircuitBreaker, why?
Issue Description
public ResponseTimeCircuitBreaker(DegradeRule rule) {
this(rule, new SlowRequestLeapArray(1, rule.getStatIntervalMs()));
}
public ExceptionCircuitBreaker(DegradeRule rule) {
this(rule, new SimpleErrorCounterLeapArray(1, rule.getStatIntervalMs()));
}
IMO, CircuitBreaker does not need multiple buckets for pulsed traffic scenarios, reusing a single bucket is sufficient.