Implement a /ping endpoint (or similar) so that we can check when the system is ready to serve requests. This should only return a 2XX code once all caches are up to date.
Activity
vcokltfre commentedon Jun 20, 2021
Can I implement this one :P
ChrisLovering commentedon Jun 20, 2021
As part of this, we should also move GET /size back into the general router, so it requires auth
ChrisLovering commentedon Jun 20, 2021
Yes :) But I suggest waiting until #106 is merged :P
Akarys42 commentedon Jun 20, 2021
Bikeshed:
/healthcheckis a better name for the route :PChrisLovering commentedon Jun 24, 2021
Maybe two endpoints? An aliveness check which returns as soon as it's serving, and then a readiness check, which is when the caches are ready.
This will line up with the checks we can configure in k8s
ChrisLovering commentedon Jun 24, 2021
On second thought, and some discussion in #dev-pixels having one health check endpoint should be enough.
As long as it returns when the caches are ready, we can use that for a liveness and readiness check.