Open jiuli opened 4 years ago
CircuitBreakerConfig circuitBreakerConfig = CircuitBreakerConfig.custom() .failureRateThreshold(50) .waitDurationInOpenState(Duration.ofMillis(1000)) .ringBufferSizeInHalfOpenState(2) .ringBufferSizeInClosedState(2) .recordExceptions(IOException.class, TimeoutException.class) .ignoreExceptions(BusinessException.class, OtherBusinessException.class) .enableAutomaticTransitionFromOpenToHalfOpen() .build() ————————————————
We may add some instructions regarding how to migrate from resilience4j to Sentinel later :)
resilience4j 如何改用 sentinel?