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

Health check and logs for subscribe and publish worker health #361

Open
Tracked by #118
neekolas opened this issue Jan 2, 2025 · 2 comments
Open
Tracked by #118

Health check and logs for subscribe and publish worker health #361

neekolas opened this issue Jan 2, 2025 · 2 comments
Assignees
Labels
deployment Deployment and infrastructure observability Metrics and observability query-and-subscribe Supporting the query API

Comments

@neekolas
Copy link
Contributor

neekolas commented Jan 2, 2025

No description provided.

@richardhuaaa
Copy link
Contributor

  1. We need to detect if the subscribe or publish worker dies. Even if they die, our API endpoints will continue to function, so just checking the API endpoints is insufficient.
  2. Both workers operate via a poll loop on the DB to fetch new records. Each poll has a row limit, so there is a risk that the poll loop starts to fall behind compared to the latest records. We should detect that and scale up if needed - one dumb idea would be to log how many rows were fetched on each poll and alert if that is close to or equal to the page size

@mkysel
Copy link
Collaborator

mkysel commented Jan 2, 2025

What scenarios could cause a worker to die? Don't they restart themselves?

I can think of:

  • catastrophic crash that does not take down the entire process
  • shutdown
  • ???

@neekolas neekolas added observability Metrics and observability deployment Deployment and infrastructure query-and-subscribe Supporting the query API labels Jan 3, 2025
@neekolas neekolas moved this to Todo in Decentralization Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Deployment and infrastructure observability Metrics and observability query-and-subscribe Supporting the query API
Projects
Status: Todo
Development

No branches or pull requests

3 participants