Logs and health
This page is for operations: it describes what Nova provides outside the user interface, so that Nova can be integrated into existing monitoring. What administrators see inside Nova is described in Monitoring and jobs.
Logs
Nova writes its log to two places:
| Target | Content |
|---|---|
| Standard output of the container | every message from the level in LOG_LEVEL up, one line per message – readable with docker compose logs app or kubectl logs and for any log collector that gathers container output |
| “Monitoring” → “Application Log” | warnings and errors, stored in the database |
The image sets LOG_LEVEL=INFO and LOG_FORMAT=json. Each line is then a JSON object with the fields ts (time in UTC), level, logger, message, module, func, line, process and thread; during a request method and path are added, on an error exception with the stack trace. Nova adds no request or session content; the messages themselves may contain names of identities and systems.
| Variable | Effect |
|---|---|
LOG_LEVEL | DEBUG, INFO, WARNING, ERROR or CRITICAL. Without a value Nova writes nothing to standard output – this is how the development server runs. |
LOG_FORMAT | json (default) or text for one readable line per message |
The Application Log in the user interface needs the database: if it cannot be reached, the messages are only on standard output. The user interface shows provisioning messages under “Monitoring” → “Provisioning” instead of the Application Log; on standard output they appear like all others. The scheduler's routine messages about every single run only appear with LOG_LEVEL=DEBUG.
Nova executes provisioning runs from a queue, as many at a time as NOVA_PROVISIONING_PARALLEL_RUNS. Runs someone is waiting for, such as an administrator's assignment or the lock when someone leaves, go before the many runs of a mass change. While runs are waiting or running, Nova writes a line provisioning queue: … running, … waiting (… interactive, … mass, … behind the same person), oldest waiting …s, … finished in the last minute once a minute, and provisioning queue drained after the last run. GET /api/monitoring/health shows the same figures for the process that answers the query in the field provisioning_queue; with several instances, each has its own queue.
In addition, the Gunicorn web server writes one line per request to the access log on standard output, with LOG_FORMAT=json also as a JSON object with method, path, status, bytes, duration_ms, remote and user_agent. Nova does not log the parameters after the ? of an address, some carry one-time codes. The access log leaves out the queries of /healthz and /readyz (see below). GUNICORN_ACCESS_LOG=0 switches it off. Gunicorn's own messages – start, workers, signals, a worker that fails to start – also appear on standard output as JSON objects with the fields above when LOG_FORMAT=json.
Querying the state
Two addresses tell monitoring, Docker and Kubernetes how Nova is doing, without sign-in. They are outside /api/ and reveal nothing but their verdict:
| Address | Answer | Meaning |
|---|---|---|
GET /healthz | always 200 with {"status": "ok"} | The process accepts requests. Nova does not query the database for it: if the database fails, restarting Nova does not help. |
GET /readyz | 200 with "status": "ready" or 503 with "status": "not_ready" | Nova brought the database schema up to date at start ("init": "ok", before that "pending"), and the database answers a query within three seconds ("database": "ok", otherwise "failed"). |
The templates use both addresses: in Kyma, Kubernetes checks /healthz at start and continuously afterwards – on the first start with up to five minutes for the migrations – and only sends requests to Nova once /readyz reports ready. The Compose template checks /readyz as its health check; docker compose ps then shows Nova as healthy.
When the result of /readyz changes, Nova writes this to the log once, with the reason. For detailed figures – CPU, memory, connections, AI server – “Monitoring” → “System Health” in the user interface remains.
Shutting down
On shutdown – docker compose stop, an update or Kubernetes stopping the pod – Nova receives the SIGTERM signal. Nova then starts no more background jobs and hands over the background work at once, but still answers open requests for up to 25 seconds (GUNICORN_GRACEFUL_TIMEOUT). The Compose template (stop_grace_period: 30s) and Kubernetes (30 seconds) wait this long before they stop the process hard. Whatever was still running afterwards is handled by Nova on the next start as described in Updates and backup.