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

Readiness endpoint #504

Open
rotarur opened this issue Nov 21, 2024 · 1 comment
Open

Readiness endpoint #504

rotarur opened this issue Nov 21, 2024 · 1 comment
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 restarting the indexer it takes some time to load all the resources and to check all SG's. during this loading period the loadbalancer is sending traffic to the pod and those queries fail increasing the error rate.

I'd like to propose to create a /ready readiness endpoint which starts to respond with 200 http code only after everything was loaded and checked. This will allow the loadbalancer to know when to start sending traffic to the backend.

We could configure a delay for the traffic to be sent to the backends but that's a static configuration and sometimes it takes less / more time than usual so better is to have an endpoint that we could configure the loadbalancer to query to know when to send traffic

Expectation proposal
To have an endoint exposed by the indexer, like /readiness, which I can hit and get the readiness of the indexer to receive traffic so we can have the loadbalancer managing these backends without responding to the user with an error.

@gusinacio gusinacio changed the title [Feat.Req] readiness endpoint Readiness endpoint Nov 27, 2024
@gusinacio gusinacio added type:feature New or enhanced functionality pgk:service size:small Small p2 Medium priority repo:indexer-rs labels Nov 27, 2024 — with Linear
@PanGan21
Copy link
Contributor

Hi I was looking at this issue.
What is the condition to be considered ready? How can we know that "everything was loaded and checked"?

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

3 participants