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

Serve correct status of ingester/distributor in gRPC healthcheck endpoint #6094

Merged
merged 2 commits into from
May 5, 2022

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented May 4, 2022

What this PR does / why we need it:

The gRCP healthcheck endpoint is used by clients that determine whether a connection to the service is healthy or not.
In case the ingester/distributor is not in "running" state and is not "active" in
the ring, this healthcheck should return "not serving".

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated
  • Is this an important fix or new feature? Add an entry in the CHANGELOG.md.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/upgrading/_index.md

chaudum added 2 commits May 4, 2022 10:19
The gRCP healthcheck endpoint is used by clients that determin whether a
connection to the service is healthy or not.
In case the ingester is not in "running" state and is not "active" in
the ring, this healthcheck should return "not serving".

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum requested a review from a team as a code owner May 4, 2022 09:14
Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

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

This LGTM; I'm curious how you found this one.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM let's give it a try

@chaudum
Copy link
Contributor Author

chaudum commented May 4, 2022

This LGTM; I'm curious how you found this one.

I came across it when looking at #6023
I don't think it's a fix for the problem, but definitely reduces the possible time window when it could happen.

@owen-d owen-d merged commit 18058d2 into main May 5, 2022
@owen-d owen-d deleted the chaudum/ingester-healthcheck-v2 branch May 5, 2022 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants