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.

Resilience4j circuit breaker actuator heath check metrics showing some negative numbers

See original GitHub issue

Resilience4j version: 1.4.0

Java version: 1.8.0_65

I am using resiliance4j circuit breaker with spring boot. in the actuator health point metrics, I am seeing some disparities in slow-calls, a slow failed calls number are coming in negative instead of positive. which is not letting my circuit breaker to open. can anyone help me the significance of this, what these negative values mean?

"endpoint1":{
           "status":"UP",
           "details":{
              "failureRate":"0.0%",
              "failureRateThreshold":"50.0%",
              "slowCallRate":"0.0%",
              "slowCallRateThreshold":"50.0%",
              "bufferedCalls":3500,
              "slowCalls":0,
              "slowFailedCalls":-2682,
              "failedCalls":0,
              "notPermittedCalls":0,
              "state":"CLOSED"
           }
        }

I am using spring boot version 2.2.0, reactor core version: 3.3.5. I am using an annotation-based circuit breaker. and this issue is coming on higher load.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
selly-sellycommented, Aug 4, 2021

@RobWin , Thanks for quick response. I’m using resilience4j-spring-boot2 v1.7.0, spring boot v2.2.1

Seems it happens when slowFailedCalls count < slowCalls or failedCalls “slowCalls”: 6, “slowFailedCalls”: 3, “failedCalls”: 6, From above metrics then as success calls come in: “slowCalls”: 6 → 5 → 4 → 3 → 2 → 1 → 0 → 0 “slowFailedCalls”: 3 → 2 → 1 → 0 → -1 → -2 → -3 → -4 “failedCalls”: 6 → 5 → 4 → 3 → 2 → 1 → 0 → 0

0reactions
selly-sellycommented, Aug 19, 2021

Hello~ Any updates about this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resilience4j circuit breaker actuator heath check metrics ...
in the actuator health point metrics, I am seeing some disparities in as slow-calls, a slow failed calls number are coming in negative...
Read more >
Improving Resilience Using Resilience4j - Second Edition
In this chapter, we will learn how to use Resilience4j to make our microservices more resilient, that is, how to mitigate and recover...
Read more >
Getting Started - resilience4j
Spring Boot Actuator health information can be used to check the status of your running application. It is often used by monitoring software...
Read more >
Dive into Kubernetes Healthchecks (part 2) | by Woj Sierakowski
This is the second part of the series introducing you to K8s (Kubernetes) health checks. In the previous part, we got familiar with...
Read more >
Why to use Circuit Breaker Pattern? - pankajtechblogs
Resilience4j is a lightweight, easy-to-use fault tolerance library, and it offers features like Rate Limiter, Retry and Bulkhead, TimeLimiter, ...
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