Files
substrate/cmd/benchmarking
Chuang Wang 52d2a2f905 Add a readyz probe to the benchmark glutton actor (#556)
## Problem

ResumeActor returned as soon as the resume workflow finished, not when
glutton's port 80 listener was accepting connections. A ping issued
right after resume could land in that gap, get ECONNREFUSED, and come
back from the router as a 503.

ateom already has a gate for exactly this: `internal/readyz.WaitAll`
blocks `RestoreWorkload` and `RunWorkload` until every container that
declares a readyz probe returns 200. But containers without a probe are
skipped entirely, and glutton declared none, so nothing waited on it.

## Solution

Add `/readyz` to glutton's HTTP mux and point the ActorTemplate at it.

The route goes on the same listener as `/ping` rather than the metrics
port: the metrics server starts independently, so a 200 there would say
nothing about whether `/ping` is reachable yet.

## Notes

`ActorTemplate.spec` is immutable, so picking this up needs a delete and
recreate of the template, not an apply.
2026-08-10 21:10:08 -07:00
..