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

fix(distributor-ha): Use a no-op HA tracker when not accepting writes #9976

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

56quarters
Copy link
Contributor

@56quarters 56quarters commented Nov 21, 2024

What this PR does

This changes how the HA tracker in the distributor is initialized. Instead of creating it unconditionally when a distributor is started, use a no-op version when the HA tracker is disabled or when running as part of component that does not accept writes but still uses distributor code like queriers and rulers.

Which issue(s) this PR fixes or relates to

Related #9826

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.

@56quarters 56quarters force-pushed the 56quarters/ha-tracker branch from 6a32719 to 7a35812 Compare November 21, 2024 16:48
This changes how the HA tracker in the distributor is initialized. Instead
of creating it unconditionally when a distributor is started, use a no-op
version when the HA tracker is disabled or when running as part of component
that does not accept writes but still uses distributor code like queriers
and rulers.

Related #9826

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
Copy link
Contributor

@NickAnge NickAnge left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you

@56quarters 56quarters merged commit ca6cc55 into main Nov 22, 2024
29 checks passed
@56quarters 56quarters deleted the 56quarters/ha-tracker branch November 22, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants