Questions tagged [circuit-breaker]

Circuit breaker is a design pattern in modern software development. Circuit breaker is used to detect failures and encapsulates logic of preventing a failure to reoccur constantly (during maintenance, temporary external system failure or unexpected system difficulties).

385 questions
2
votes
0 answers

istio outlier detection breaking routing with no metrics

we have been using istio for some time, but have recently discovered an issue we cant explain with outlier detection. We have 50+ microservices and have discovered that on some of them "atleast 2-3" traffic does not seem to be load balancing we…
Asuu
  • 173
  • 1
  • 11
2
votes
2 answers

Unexpected behaviour using nested Retry, and Circuit Breaker policies of Polly.Net

I coded a resilience strategy based on retry, and a circuit-breaker policies. Now working, but with a issue in its behavior. I noticed when the circuit-breaker is on half-open, and the onBreak() event is being executed again to close the circuit,…
diegobarriosdev
  • 409
  • 1
  • 6
  • 20
2
votes
3 answers

CircuitBreaker immediate fallback

I followed https://resilience4j.readme.io/docs/getting-started-3 for Resilience4J documentation. I have a problem, my circuitbreaker is immediately connecting to the fallback( on the first invoke) when the primary-backend is not…
Winster
  • 943
  • 10
  • 28
2
votes
1 answer

How to use Resilience4j Circuit Breaker with WebFlux in Spring Boot

I have service A that calls downstream service B. Service A code @RestController @RequestMapping(value = "", produces = MediaType.APPLICATION_JSON_VALUE) public class GreetingController { private final GreetingService greetingService; …
2
votes
1 answer

How to skip retry in vertx circuit breaker based on condition

I am currently using Vertx CircuitBreaker to attempt retry on requesting event bus. Based on the ReplyException.ReplyFailure I want to skip or avoid retries. For example I don't want retry when the event bus responds with…
vel
  • 173
  • 9
2
votes
1 answer

Get Instance of circuit breaker from configuration file

This is my configuration file. resilience4j.circuitbreaker: instances: backendB: registerHealthIndicator: true slidingWindowSize: 10 minimumNumberOfCalls: 10 permittedNumberOfCallsInHalfOpenState: 3 …
2
votes
1 answer

Polly Circuit Breaker handled and unhandled exceptions

I want to use Polly to implement a Circuit Breaker pattern. In the docs, there is a description of the Half Open state, and there it says: If a handled exception is received, that exception is rethrown, and the circuit transitions immediately back…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
2
votes
1 answer

Elasticsearch unassigned shards CircuitBreakingException[[parent] Data too large

I got alert stating elasticsearch has 2 unassigned shards. I made below api calls to gather more details. curl -s http://localhost:9200/_cluster/allocation/explain | python -m json.tool Output below "allocate_explanation": "cannot allocate…
Gokul
  • 191
  • 3
  • 15
2
votes
2 answers

Ignore HTTP 404 Error in opossum circuitbreaker

I am building an express api and have implemented a circuit breaker in it using opossum. Is there a way for the circuit breaker to ignore the custom HTTP exceptions generated from application? I have tried adding the errorFilter option but getting…
subhnet
  • 116
  • 7
2
votes
1 answer

Include/exclude exceptions in camel resilience4J

How to include/exclude exceptions from profiling while implementing circuit breaker pattern using resilience4J library in camel route(spring-boot application). we are using the following official library but it doesn't expose any API to include…
2
votes
3 answers

Automatic rate adjustment in Reactor

TL;DR; Is there a way to automatically adjust delay between elements in Project Reactor based on downstream health? More details I have an application that reads records from Kafka topic, sends an HTTP request for each one of them and writes the…
2
votes
2 answers

Q: Using Circuit Breaker in SAP Cloud SDK resilience

When I tried to use ResilienceDecorator.executeCallable() to enable circuit breaker, I have to throw out ResilienceRuntimeException in my callable to make the circuit break work. Sample code as below. Without it, circuit breaker is always closed. is…
2
votes
3 answers

Resilience4J Circuit Breaker to kick-in on specific HTTP status code

I am aware we can use recordExceptions() while building CircuitBreakerConfig to register exceptions on which Circuit Breaker should transition to OPEN state. Code I am using resilience4j-feign to decorate my CircuitBreaker. Would be really helpful…
VHegde
  • 43
  • 1
  • 1
  • 8
2
votes
2 answers

How to get the polly circuit breaker state without executing the requests

I understand that we can use the circuit state to fetch the current state with in the context. but is there a way that I can get the circuit state outside the context. for eg in below here If I want to get the circuit state at the controller how do…
threeleggedrabbit
  • 1,722
  • 2
  • 28
  • 60
2
votes
1 answer

Axon framework and circuit breaker

I have been exploring axon framework and event sourcing for some days. I have a question now. Is there any possibility to implement circuit breaker pattern using hystrix in event-sourcing design pattern like axon? I have been going through the…