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

Healthy endpoint #503

Open
rotarur opened this issue Nov 21, 2024 · 0 comments
Open

Healthy endpoint #503

rotarur opened this issue Nov 21, 2024 · 0 comments
Labels
p2 Medium priority pgk:service repo:indexer-rs size:small Small type:feature New or enhanced functionality

Comments

@rotarur
Copy link
Contributor

rotarur commented Nov 21, 2024

Problem statement
When some pod has an issue to connect to the database or any other dependent service, it's still healthy for the loadbalancer which send traffic to it increasing the errors for the customers.

In order to reduce or completely remove the errors during these connection issues I'd like to propose to add a /healtz (yes it's written healthz instead of health to avoid overlapping with any other similar endpoint for the application and it's a common usage to name this one like that for the kubernetes) which will tell the loadbalancer that the pod is not healthy and to stop sending traffic to it. This endpoint will also help kubelet in kubernetes (or any other automated process) to restart that unhealthy pod before it's becoming critical to the whole system.

Expectation proposal
To have an endpoint exposed by the indexer, like /healthz, which I can hit to know that the indexer and all its dependencies are healthy (these dependencies can be critical to the indexer and not critical which don't affect the healthy endpoint)

@gusinacio gusinacio changed the title [Feat.Req] healthy endpoint Healthy endpoint Nov 27, 2024
@gusinacio gusinacio added type:feature New or enhanced functionality pgk:service p2 Medium priority repo:indexer-rs size:small Small labels Nov 27, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 Medium priority pgk:service repo:indexer-rs size:small Small type:feature New or enhanced functionality
Projects
None yet
Development

No branches or pull requests

2 participants