Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable ingester push circuit breaker in read-only mode #9760

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

pr00se
Copy link
Contributor

@pr00se pr00se commented Oct 28, 2024

What this PR does

We ran across an issue where the ingester's push circuit breaker was getting tripped when first starting, or when leaving read-only mode. The --initial-delay option allows us to add a delay before the circuit breaker starts measuring request times and making decisions. This is a solution for the cold start case, but does not help us when a running ingester is leaving read-only mode.

This PR builds on #9743 to disable the ingester push circuit breaker when entering read-only mode, and enable it when leaving read-only mode. It also only enables the push breaker at start time if the ingester isn't starting in read-only mode. Now the same --initial-delay setting will apply when an ingester leaves read-only mode.

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@pr00se pr00se requested a review from a team as a code owner October 28, 2024 21:06
Copy link
Member

@jhalterman jhalterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pr00se pr00se merged commit 2532be9 into main Oct 28, 2024
31 checks passed
@pr00se pr00se deleted the read-only-circuit-breakers branch October 28, 2024 21:28
pr00se added a commit that referenced this pull request Oct 28, 2024
* Disable ingester push circuit breaker in read-only mode

* Update CHANGELOG

* Remove unused function

(cherry picked from commit 2532be9)
pr00se added a commit that referenced this pull request Oct 28, 2024
* Disable ingester push circuit breaker in read-only mode

* Update CHANGELOG

* Remove unused function

(cherry picked from commit 2532be9)

Co-authored-by: Patryk Prus <patryk@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants