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

Add PeriodicsService for performing periodic database operations, such as expiring stale ComputeServiceRegistrations #109

Open
dotsdl opened this issue Mar 31, 2023 · 0 comments

Comments

@dotsdl
Copy link
Member

dotsdl commented Mar 31, 2023

Currently, we expire stale ComputeServiceRegistrations via the heartbeat_computeservice compute API endpoint. This works, but it is largely unnecessary, and so may result in unnecessary load on the database. Every time a ComputeService instance issues a heartbeat update, it runs this function.

Instead, we could create a PeriodicsService responsible for running functions such as this that operate on a fixed schedule. This would avoid potential load problems, and make the heartbeat_computeservice endpoint do only the one thing it should.

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

No branches or pull requests

1 participant