Health¶
TL;DR
- The probes sit outside
/api/v1and answerGETandHEADwithout sign-in. GET /healthz(aliasGET /api/health) is liveness: 200 while the process runs, with database and search details.GET /readyzis readiness: 200 when the database answers at this version's schema revision, else 503.- Only exact
GET/HEADrequests on these paths skip theHostcheck.
Endpoints¶
| Method | Path | Purpose | Caller |
|---|---|---|---|
GET, HEAD |
/healthz |
liveness | none |
GET, HEAD |
/api/health |
alias of /healthz |
none |
GET, HEAD |
/readyz |
readiness | none |
GET /healthz¶
Answers 200 while the process runs, giving the database about 0.3 s for its details.
| Field | Meaning |
|---|---|
status |
|
version |
|
database_reachable |
false when the database did not answer in time |
schema_revision |
the database's |
search_index_format |
the format the search index was built in;null if none is recorded |
reindex_required |
true when that format is older than this version's or not recorded,until exactdocs reindex has run (search keeps answering meanwhile) |
search_engine |
the engine that answers searches, below |
vector_store_missing |
once an embedding model is configured, the extension the vector store needs and cannot load ( sqlite-vec on SQLite, vector on PostgreSQL), else null |
search_engine |
Engine |
|---|---|
fts5 |
SQLite |
pg_search |
ParadeDB's BM25 on PostgreSQL |
postgres_fts |
PostgreSQL full-text search, when the database has no pg_search |
- When the database did not answer in time,
database_reachableisfalseand the database fields arenull. - A request whose
Hostthe instance does not trust gets only{"status": "ok"}.
GET /readyz¶
| Answer | When |
|---|---|
200 {"status": "ready"} |
the database file exists, answers within 2 s and is at this version's schema revision |
503 {"status": "not_ready", "reason": ...} |
otherwise, with a fixed sentence |
Both probes keep their budget while a database statement is still running.
Host check
Only exact GET/HEAD requests on these paths skip the Host check
(Deployment).