How to close circuit in run-time?
See original GitHub issueWe are using resilience4j for sending messages to AMQP broker. Situation that we encountered is that one circuit was open, and since we stopped sending messages for this circuit, it stayed open forever in production. This created problem for alerting, since there is now constantly 1 open circuit forever, and it will not close, since there will be no more messages passing through it.
Is it possible to manually close circuit after some period of inactivity?
Can this be solved with enableAutomaticTransitionFromOpenToHalfOpen
:
return CircuitBreakerConfig.custom()
.failureRateThreshold(50)
.ringBufferSizeInClosedState(6)
.ringBufferSizeInHalfOpenState(2)
.waitDurationInOpenState(Duration.ofMinutes(1))
.enableAutomaticTransitionFromOpenToHalfOpen()
.build();
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Resilience4j | Circuit breaker basics & runtime behavior/state ...
If success then close circuit back i.e. allow calls or again open it & wait 60 seconds. Create mock service which returns success...
Read more >DAG pass to determine circuit runtime · Issue #3092 - GitHub
It should be possible to compute the run time of a circuit at the end of the transpilation process given the gate timing...
Read more >spring - Hystrix runtime management - Stack Overflow
You can set the property hystrix.command.HystrixCommandKey.circuitBreaker.forceClosed. ConfigurationManager.getConfigInstance().
Read more >Runtime Capabilities - Tremor
It is possible for any operator node in a pipeline and for all connectors to open and close the runtimes builtin circuit breaker...
Read more >Estimating the Circuit De-obfuscation Runtime based on ...
The proposed ICNet is an end-to-end framework that can automatically extract the deter-minant features required for deobfuscation runtime prediction.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
thanks for using Resilience4j, Yes, you can close a circuit breaker “manually” by using
circuitbreaker.transitionToClosedState()
But you have two other optionscircuitbreakerConfig.enableAutomaticTransitionFromOpenToHalfOpen()
Thanks @RobWin , that’s what I was looking for. Can you share me the link or doc where i can refer for further information?