Add PeriodicsService
for performing periodic database operations, such as expiring stale ComputeServiceRegistration
s
#109
Milestone
Currently, we expire stale
ComputeServiceRegistration
s via theheartbeat_computeservice
compute API endpoint. This works, but it is largely unnecessary, and so may result in unnecessary load on the database. Every time aComputeService
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 theheartbeat_computeservice
endpoint do only the one thing it should.The text was updated successfully, but these errors were encountered: