OpenFolia

Readiness check

GET
/health/ready

Whether this instance should receive traffic, for load balancers; needs no token. 200 when the database and the blob store answer (each within 2 seconds) and queries do not wait for a connection, a JSON:API 503 error (database-unavailable, blob-store-unavailable or database-saturated) otherwise. Unlike /health, a failing answer is no reason to restart the instance.

Response Body

application/json
  1. response
status*string

degraded when a dependency is unavailable

Value in"ok""degraded"
database*string
Value in"ok""unavailable"
pool*string

saturated when queries wait for a free database connection

Value in"ok""saturated"
blobs*string

unavailable when the blob store (images, files) does not answer

Value in"ok""unavailable"
Example Request
curl -X GET 'http://localhost:3000/health/ready'
Example Response
{  "status": "ok",  "database": "ok",  "pool": "ok",  "blobs": "ok"}