Skip to content

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

Description

@dotsdl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions