Repository navigation
Description
Summary
adminReverifyInterval is 15s, and its comment justifies that as sitting safely below ParentShutdownTime:
// adminReverifyInterval bounds how long the liveness watchdog may stay on the
// cheap /ready probe before re-confirming, ON A FRESH CONNECTION, that the
// Envoy answering this node's admin is still ours at our epoch. Chosen below
// both ParentShutdownTime (60s — so a cross-pod takeover is still diagnosed
// while our parent lives) and defaultAdminUnresponsiveDeadline (30s).
const adminReverifyInterval = 15 * time.Second(agent/internal/proxy/hotrestart/adminprobe.go)
The 60s figure is the CLI default (agent/internal/cmd/supervisor.go). The deployed value is 15s — charts/aether/values.yaml, proxy.hotRestart.parentShutdownTime: 15s, which is what the proxy DaemonSet passes as --parent-shutdown-time.
So in production adminReverifyInterval == ParentShutdownTime == 15s. The margin the comment relies on is zero.
Why it matters
The re-verification exists to bound how long the supervisor can sit on the cheap pooled /ready probe before re-confirming, on a fresh connection, that the Envoy answering admin is still ours at our epoch. Proposal 001 lesson 3: the old pod detects a mid-handoff cross-pod takeover via its own Envoy no longer answering at its epoch. Lesson 6 (added by #647) is that the identity probe must never reuse a connection, precisely because a draining hot-restart parent keeps answering LIVE at its old epoch over an already-accepted connection until it exits.
ParentShutdownTime is exactly how long that draining parent lives. The design intent was: re-verify comfortably within that window, so a takeover is diagnosed while the parent is still around. At 15s vs 15s the re-verification can land at or after the parent's exit, so the intended "diagnosed while our parent lives" property is not guaranteed in the deployed configuration.
This is a margin erosion, not a known incident — nothing has been attributed to it. Filing it because the code's stated safety argument does not hold against the deployed values, which is the kind of drift that is invisible until it isn't.
Options
- Derive it rather than hard-coding:
adminReverifyInterval = min(parentShutdownTime, adminUnresponsiveDeadline) / N(N≈3-4), computed from the effective config at construction. Self-correcting if either value changes. - Keep the constant but assert the invariant at startup and log loudly (or refuse to start) when
adminReverifyInterval >= parentShutdownTime. - Raise the deployed
parentShutdownTime, if 15s was chosen for other reasons and the drain budget allows.
(1) is preferred — a constant justified against a value that lives in a chart will drift again.
Acceptance
- The relationship between
adminReverifyIntervaland the effectiveparentShutdownTimeholds by construction or is enforced at startup. - A test pins the invariant so a future chart edit cannot silently erode it again.
- The comment cites the effective value, not just the CLI default.
Found while planning #649 (the reviewer noticed the comment's premise did not match the deployed chart). Related: #646/#647 and proposal 001 hard-won lesson 6.
Activity
fix(supervisor): derive the admin re-verify interval from the effecti…
bpalermo commentedon Sep 5, 2026
Production validation — 8h soak 2026-09-05, rev192 / chart 0.92.0 / a3cde6c
Auto-closed by its PR merge on 2026-09-04T21:16Z, before deploy. Recording the production evidence.
The derived interval is live and correctly derived on every node. One
derived admin re-verify intervalINFO line per proxy pod, all five, e.g. w01:reverifyInterval 5s = parentShutdownTime 15s / divisor 3, so the margin this issue was about is restored (3 probe opportunities per shutdown window instead of exactly 1).
No ERROR anywhere.
kubectl -n aether-system logs <pod> -c proxy | grep -c '"level":"ERROR"'= 0 on all 5 current proxy pods.Cost is free, as predicted. Profiling 07:08:30–07:33:30Z: probe cadence identical across releases (4.998/s fleet vs 5.000/s nominal); the whole reverify loop is 12.9 core-s/25min = 0.0086 cores; fresh-connection dial 1.15 core-s. Worst-case added cost 0.004 cores — 1/18 of what #673 removed in the same release.
Watch out when reading the profile: with #673's launch overhead gone the supervisor denominator shrank ~6.4x, so
adminProber.probenow reads as 46.19% andadminServerInfo45.94% of supervisor CPU. In absolute terms that is 9.10 / 9.05 core-s — a share-based read calls this a regression when it is not.Behavioural: 6 proxy rolls in 8h incl. one agent+proxy+svc-3 TRIPLE, 0 proxy restarts, handoffs 18.06–20.97s, liveness 0 errors / 714,703.
Verdict: holds in production. Staying closed.