Skip to Content

Health

GET/health

Purpose

Liveness check. Confirms the service is up and reports which build is answering.

Example

curl -s http://127.0.0.1:8080/health
{ "status": "ok", "service": "orbitforge-api", "version": "0.1.0" }
ParameterTypeUnitDefaultRequiredDescription
statusstringn/a—YesLiteral `ok` when the service is answering.
servicestringn/a—YesService name, `orbitforge-api`.
versionstringn/a—YesBuild version. Worth logging alongside any result you keep.

Use in orchestration

livenessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 5 periodSeconds: 10

The endpoint takes no arguments, touches no state, and is cheap, so it is safe to poll frequently.

What it does and does not tell you

/health reports that the process is answering. It does not report that your constellations still exist.

Because the service holds constellations and scenarios in memory, a restart produces a perfectly healthy service with an empty store. A client that checks /health and then gets a 404 from an analysis endpoint has not hit a contradiction: it has found the restart.

The version field is the practical value here. When a result looks wrong, the first question is which build produced it, and this is where that is recorded.

See also

  • API overview for the stateful model this endpoint does not cover.
Question? Give us feedbackDocuments Varaha Constellation Designer main (pre-release)
Last updated on