Skip to content

fix(mesh-dns): readiness probe timeout + CPU headroom (unblock surge rollout) - #581

Merged
bpalermo merged 1 commit into
mainfrom
fix/meshdns-readiness-probe-timeout
Jul 22, 2026
Merged

bpalermo merged 1 commit into
mainfrom
fix/meshdns-readiness-probe-timeout

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

The mesh-dns daemon readiness probe (added in #580) re-execs the full /agent binary (distroless image, no shell), whose cold start under the daemon's 50m CPU request exceeds the 1s default probe timeout. On talos e2e the surge pod bound and wrote its ready-marker but the probe kept timing out (command timed out after 1s, x136), so it never reported Ready and maxUnavailable:0 wedged the DaemonSet rollout (old pods kept serving — no DNS outage, but the roll stalled).

The proxy-supervisor uses the same exec-marker pattern at the 1s default only because /opt/aether/supervisor is a small binary; the full agent needs headroom.

Fix (chart-only)

  • readinessProbe: timeoutSeconds 1→5, periodSeconds 2→5, failureThreshold 2→3, initialDelaySeconds 0→1.
  • meshDnsDaemon.resources: CPU limit 100m→300m (burst for the cold-start exec) + request 50m→100m; memory 64Mi→128Mi limit / 48Mi request (the probe transiently spawns a second /agent).
  • Chart 0.84.0 → 0.85.0.

Marker semantics and REUSEPORT logic unchanged. Follows #578/#579/#580.

The mesh-dns readiness probe re-execs the full /agent binary (distroless
image, no shell), whose cold start under the daemon's 50m CPU request/100m
limit exceeds the 1s default probe timeout — so the surge pod never reported
Ready and maxUnavailable:0 wedged the rollout (found on talos e2e: probe
"command timed out after 1s" x136, pod stuck 0/1 though bound + serving).

Bump the probe to timeout 5s / period 5s / failureThreshold 3, and give the
daemon CPU burst (limit 100m→300m) + memory (64Mi→128Mi) headroom for the
transient second /agent process the exec spawns. Marker semantics unchanged.

Follows #578/#579/#580.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
@bpalermo
bpalermo merged commit 6e72f36 into main Jul 22, 2026
14 checks passed
@bpalermo
bpalermo deleted the fix/meshdns-readiness-probe-timeout branch July 22, 2026 10:46
bpalermo added a commit that referenced this pull request Jul 25, 2026
Both suites assert on a MESH DNS NAME (echo.<ns>.<mesh-domain>) but gated
readiness only on ds/aether-agent. Before #578 that was sufficient, because
the agent WAS the resolver; after the decoupling it no longer implies DNS is
serving, so the harness raced a cold aether-mesh-dns DaemonSet and failed
with an unexplained curl 000. The nightly e2e has been red since 07-22.

Waits for ds/aether-mesh-dns alongside the agent, and dumps mesh-dns pod
state + logs when the assertion fails: a bare 000 is ambiguous between "did
not route" and "did not resolve", and that ambiguity is what turned this into
a bisect instead of a self-evident failure.

The missing wait is not proven to be the only cause -- the daemon's readiness
probe is CPU-sensitive (#581) and CI runners are constrained -- so the
diagnostics are there to settle it on the next run.

Refs #589.


Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant