Complete M7.8 operations endpoints and region server image

ADR-0066: evo-server --ops-listen serves /livez (loop responding, never
authority), /readyz (200 only while the host holds the lease with a
verified recovered head) and /metrics (Prometheus text: 30 fixed
series for readiness, phase, lease epoch/remaining, simulated/committed
ticks, commit lag, checkpoint age, tick debt, queue use and bounds, and
counters; the only labels are a 6-value phase and 4-value drop reason).

The dependency-free OpsServer runs on the host loop with no thread:
GET on exact paths, 405/404/400/431 responses, 8 connections with excess
refused on accept, 4 KiB requests, 1 s deadlines, 16 KiB responses.
HostStatus/phase types moved to the portable evo::ops library with a
Windows-tested renderer. evo-server now refuses to start without its
required identity and connection settings.

Adds the server-runtime Docker target (evo-server + pinned libpq,
UID 10001, no credentials), a CI server-image job with smoke script and
optional publishing, and a Kubernetes example outside Argo.

Validated: Windows CTest 59/59; Linux Debug/Release/clang-tidy/ASan
CTest 59/59; PostgreSQL suites under Release, clang-tidy and ASan with
real process probes; two ops mutations caught. Docker build/smoke and
Gitea CI not executed locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-28 23:09:28 -04:00
co-authored by Claude Opus 5.5
parent 30411a83f9
commit 7aec68db8e
23 changed files with 1222 additions and 65 deletions
+12
View File
@@ -191,3 +191,15 @@ boundary; never set it in shared environments. Use the default 20 s lease in any
shared environment. `--lease-profile fast` exists
only for local tests. The runtime credentials come from `--pg-*` flags and a
passfile; never place passwords on the command line.
### Operations endpoints (M7.8, ADR-0066)
`--ops-listen <numeric address:port>` serves three endpoints:
- `GET /livez`: the process loop is responding. It says nothing about authority.
- `GET /readyz`: 200 only while this process holds the lease and has a verified
recovered head; 503 with the phase otherwise.
- `GET /metrics`: Prometheus text.
A probe may wait up to one bounded I/O step (the 5 s commit deadline), so probe
timeouts must exceed that. Expose port 9100 only to the monitoring namespace;
the endpoints are unauthenticated plain HTTP.