question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CircuitBreakers events in actuactor end-point doesn't works after updating in runtime

See original GitHub issue

Resilience4j version: 1.5.0 Java version: 11

Hi!

I want to update the circuit-breakers configuration at runtime, I have a schedule that consumes the DB and I update the configuration every 5 minutes (similar to this issue https://github.com/resilience4j/resilience4j/issues/850). To update the CBs I use the replace function in the CircuitbreakerRegistry, but after the first update, I stop seeing the CBs events at the actuator end point.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
RobWincommented, Aug 14, 2020

As an alternative you could have a look at Spring Cloud Config.

1reaction
MrCoderYucommented, Jan 25, 2021

Hi @RobWin

Yes, I use the last version of spring-boot 2.3.2 and no I use the R4J default config

Shure!

That’s how I update circuit breakers:

CircuitBreaker oldCircuitBreaker = circuitBreakerRegistry.circuitBreaker(name);
CircuitBreaker updatedCircuitBreaker = getLastVersion(oldCircuitBreaker);
circuitBreakerRegistry.replace(name, updatedCircuitBreaker);

After replacement, the end point of the actuator shows the oldest CB object

I was checking, and notice that EventConsumerRegistry<CircuitBreakerEvent> in CircuitBreakerEventsEndpoint is never updated.

hi, can you tell me pls,before replace(),how to create a new CircuitBreaker?in method getLastVersion()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Production-ready Features - Spring
This means that the actuator endpoints that require a POST (shutdown and loggers endpoints), a PUT , or a DELETE get a 403...
Read more >
Allow circuitbreakers to be enabled and disabled via ... - GitHub
No, no config change required. We/You could provide a HTTP-based management endpoint to disable and enable CircuitBreakers. The endpoint invokes ...
Read more >
Improving Resilience Using Resilience4j - Second Edition
Resilience4j exposes information about its circuit breakers and retry mechanisms at runtime, using actuator endpoints.
Read more >
Help, my Spring Boot info actuator endpoint is enabled, but I ...
Goal: exposes Java runtime information. Configuration property: management.info.java.enabled. It's up to you to decide what information you ...
Read more >
Getting Started - resilience4j
The endpoint /actuator/circuitbreakers lists the names of all CircuitBreaker instances. The endpoint is also available for Retry, RateLimiter, Bulkhead and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found