Health
Twister exposes two health check endpoints for monitoring and orchestration.
GET /healthz
Liveness probe. Returns 200 if the process is responsive.
No dependency checks. Safe to call at any frequency.
GET /readyz
Readiness probe. Checks database reachability.
Executes a test query against the Turso/SQLite database. Returns 503 if the database cannot be reached.
Usage
Configure your orchestrator to poll these endpoints:
| Endpoint | Purpose | Failure action |
|---|---|---|
/healthz | Liveness | Restart the process |
/readyz | Readiness | Remove from load balancer |