You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
proxy DaemonSet roll: ~1.4 s of connection_error on one node's egress during the pod handoff (36 prober errors on w01, rev225 deploy) #823
Found on the rev225 deploy (talos-main, 2026-09-19). Single observation on this build; related to but distinct from #817.
What happened
During the aether-proxy DaemonSet roll of the deploy (proxy w01 pod start 20:34:47Z), main-worker-01's prober logged 36 connection_error: liveness/egress 6, mesh-DNS 15 + 15 on both targets — one ~1.4 s window at 25 probes/s, first exported 20:36:05Z, flat ever since (through two more deliberate DaemonSet rolls, six churn events and the SHRINK, all clean on every node). No other node, no other error class, no dns_*.
EnvoyNotLive was pending on w01 at 20:35:30 and 20:36:00Z (never fired), with EnvoyControlPlaneDisconnected and MeshDNSWatcherInactive pending in the same samples. envoy_cluster_manager_warming_clusters on w01 was 0 at every 5 s sample 20:34:30 → 20:37:00Z, so this is not #815's re-warm/pool-drain path.
Why it matters
connection_error on the local egress listener means nothing was accepting on 127.0.0.1:18081 for ~1.4 s: a gap in the surge + hot-restart handoff between the outgoing and incoming proxy pods. The rev219/220/224 deploys and both deliberate proxy rolls today were perfect zeros, the rev221 deploy had a different symptom on a different node (#817: 2.8 s of 404 NR, i.e. accepting but without routes). Two different handoff gaps in five deploys says the proxy roll is not reliably hitless on a loaded node — w01 is the densest node (18 mesh pods, Prometheus).
To establish
The supervisor's handoff log on w01 for 20:34:47 → 20:36:10Z: which branch (handoff / successor_wait / drain_fallback), durations, and whether the outgoing epoch stopped listening before the incoming one was accepting (the ready marker vs the actual socket state).
Whether the node's pod count correlates (w01 18 pods vs 6–9 elsewhere): listener count drives the new epoch's warm time, and since release one each mTLS pod also has an inboundready_* cluster.
Whether this deploy's chart change (a stats_tags entry → bootstrap change → a restart with a new bootstrap rather than a pure image roll) matters.
Measured: 0 / 55 node-rolls — and like #817, this is not a proxy-handoff defect
11 deliberate rollout restart ds/aether-proxy (55 node-rolls, 50 clean) on rev225 / 0.92.28-e4af095: zeroconnection_error at handoff. The only prober connection_error in the window were the 36 inherited frozen from the rev225 deploy itself. Zero DC, zero UC fleet-wide.
Both prior occurrences happened during deploys that rolled the agent too. Hard evidence for this one: on the original w01 occurrence the new proxy pod started 20:34:47Z and LDS did not load until 20:35:27.16Z — 40 s later. In the loop, the same node took 3.3 s. The gap was the agent having nothing to serve, not the handoff being ungraceful. Re-ranking: agent-roll / xDS-availability, same family as #817.
The handoff itself is healthy, with numbers
The roll is a cross-pod hot restart: predecessor_detected = 1 on all five nodes, hot_restart_epoch 25→28+, one increment per roll. Branch and timings (w01, roll 1):
event
timestamp
live predecessor confirmed (epoch 25→26, heartbeatAge 968 ms)
22:03:02.750
LDS
22:03:06.092
RDS
22:03:06.117
parent closing and draining listeners
22:03:06.350
pod ready: envoy live at newest epoch
22:03:20.755
termination requested mid-handoff; waiting for successor (budget 155 s)
22:03:21.612
envoy epoch terminated by successor
22:03:21.683
~22 s per node, ~118 s per roll, new pod Ready before the old one is deleted, every time.
Refused dial versus reset — answered
downstream_cx_total = 1 per epoch with downstream_rq_total in the hundreds: the prober rides a single keep-alive connection. So a handoff that breaks that connection yields a burst of errors until it redials, with nothing ever actually being unreachable. That is exactly #823's shape, and it means the symptom is a connection-reuse artefact of the measurement client rather than a period of unavailability.
In 55 node-rolls the replacement was always graceful, so the break itself did not occur — consistent with the defect living in the agent-roll path.
Measurement caveat worth keeping
Envoy series carry only a node label, no pod or instance label, so old and new pod series collide during the handoff window — the same class as the edge bug fixed in #809. Use the update_time gauges when ordering matters. Worth adding a per-pod label so handoff windows stop colliding; that would have made both this and #817 far easier to measure.
The prober was the wrong instrument: ~510 k6 failures produced no access log line at all
This revises the earlier "0 in 55 node-rolls" result. That measurement used the prober, and the prober cannot see this.
Reconciling each k6 runner's own http_req_failed against the source proxies' access logs for that runner's pod, whole rev226 soak (8h30m, 9,179,969 iterations, 668 failures):
node
access-log failures
k6 http_req_failed
unlogged
w01
107
107
0
w02
9
9
0
w03
22
148
126
w04
10
140
130
w05
10
264
254
w01 and w02 reconcile exactly. w03, w04 and w05 do not — roughly 510 failures produced no access-log line at any proxy, meaning the request never reached a proxy that could log it. That is consistent with the local proxy being absent or draining, and not with anything the mesh did to a request it received.
w05's ten logged failures are unremarkable: 503 UC spread across five clusters (echo 3, svc-1 2, svc-3 2, svc-4 2, svc-2 1), and a separate check for non-4xx flagged lines from that pod found no others.
Why the prober missed it and k6 did not
The prober rides a single keep-alive connection (downstream_cx_total = 1 per epoch against hundreds of requests). A handoff that breaks that connection costs one reconnect and shows up, if at all, as a short connection_error burst. k6 runs 60 VUs opening and reusing many connections, so a window where nothing is accepting produces a refused dial per affected VU, directly.
So k6's unlogged failures are a far more sensitive instrument for this defect than the prober is, and the earlier "0 occurrences in 55 node-rolls" should be read as 0 occurrences visible to the prober, not as absence.
Two things this does not yet establish
Why w01 and w02 are clean. Both reconcile at exactly zero unlogged while the other three sit at 126–254. Six proxy rolls hit every node equally, so a per-roll gap should be roughly uniform. It is not, and no cause is proposed here.
What the 510 actually are. No mechanism has been demonstrated — only that the requests never reached a loggable proxy. The handoff window is the obvious candidate given the shape, but that is a hypothesis, not a finding.
Also worth recording against the identity defect: w01's 107 reconciles exactly and 94 of it is #829. So the node carrying the identity bug logged every one of its failures, while the three nodes with no #829 have most of theirs invisible to the mesh entirely. Two separate failure populations, and only one of them is in the access logs — which is why the aggregate 0.00728% error rate conceals rather than reveals the interesting structure.
Suggested next measurement
Correlate the unlogged failures' timestamps against proxy pod handoff windows per node. k6 does not emit per-request timestamps in its summary, so this needs either a k6 output stream with timestamps, or per-node upstream_cx_connect_fail / listener downstream_cx_destroy counters sampled across each roll.
Credit: the reconciliation was measured platform-side by the infra peer against the access logs; the interpretation here is mine.
rev229 re-measurement: did not reproduce — and the 29 connect failures are not this bug
Measured on talos-main, chart aether-0.93.1-8d0d5da683f7055acebf5f9d3318f10b82ce81e0, applied
2026-09-20T17:38:44Z, roll complete 17:41:10Z. Read-only; nothing was mutated.
Headline: the 29 upstream_cx_connect_fail in that window are 100 % on the agent_xds
cluster — Envoy's ADS socket to the node agent — and they are caused by the agent
DaemonSet rolling, not by the proxy handoff. Zero data-plane clusters were affected. Separately,
this roll produced two Envoy epochs per node on 4 of 5 nodes, which I think is the missing
discriminator between "deploy" and "rollout restart" and is the most useful new lead here.
1. What actually rolled
All three node DaemonSets rolled together, uncoordinated:
DaemonSet
generation
pod age at measurement
aether-agent
285
34–35 m
aether-mesh-dns
126
34–35 m
aether-proxy
350
33–35 m
So rev229 did satisfy the precondition both prior occurrences shared (an agent-rolling
deploy), and still did not reproduce.
2. The 29 connect failures are the agent roll, control-plane only
Raw counter, envoy_cluster_upstream_cx_connect_fail_total{aether_cluster="agent_xds"}
(not increase() — see the caveat below):
node
before
after
real delta
main-worker-01
5
5
0
main-worker-02
3
9
+6
main-worker-03
4
5
+1
main-worker-04
4
10
+6
main-worker-05
(absent)
9
+9
Corroborating, same nodes, same instants:
envoy_cluster_upstream_rq_pending_failure_eject_total{aether_cluster="agent_xds"} steps by
the same magnitude (w02 1→9, w03 1→5, w04 5→10, w05 1→9). The ejected pending requests are the ADS stream requests.
envoy_control_plane_connected_state dips to 0 for 1–2 samples on all five nodes,
staggered with each node's own epoch bump.
envoy_cluster_upstream_cx_connect_timeout_total{aether_cluster="agent_xds"} has no series
at all, while that metric name exists with 4 series elsewhere in the same window. So these
are refused connects (the UDS is not being listened on), not timeouts.
The edge proxies on w03/w04/w05 show the same agent_xds pending ejects. The edge proxy
is not part of the proxy DaemonSet — it lost its ADS stream purely because the node agent
under it was replaced.
Mechanism: the node agent pod is replaced → /run/aether/xds.sock stops accepting →
every Envoy on that node (node proxy and edge) gets ECONNREFUSED for a handful of retries →
reconnects. Envoy keeps serving from its last good snapshot throughout. This is benign by
design and it is not#823.
Caveat on the aggregate that produced "29"
sum(increase(envoy_cluster_upstream_cx_connect_fail_total[2m])) is not safe here. Node-proxy envoy_* series carry only node — there is no pod or instance label (the edge proxies do get instance+job; per charts/aether/templates/agent-proxy-daemonset.yaml:164 the proxy exports k8s.pod.name/k8s.pod.uid as OTLP resource attributes, but the collector deliberately
promotes only k8s.node.name, and only for agent_xds/otel_collector). During the ~20 s
surge overlap, samples therefore alternate between the outgoing and incoming pod. On w01 the
raw counter was flat at 5 with a single 4 sample, and increase() still reported ≈16 over
the window. Phantom. This is the same class as #809 and it has now corrupted a measurement in
this issue twice.
3. The data plane was untouched — and this time that negative is meaningful
envoy_listener_manager_total_listeners_active: flat 34 / 28 / 25 / 25 / 19 at every 15 s
sample across the whole roll. No dip, never zero.
envoy_cluster_upstream_cx_connect_fail_total on every mesh cluster: flat. (aether-test/echo
on w04 is present and flat — the family is demonstrably collected from node proxies, so the
absent series elsewhere are true zeros under Envoy's never-incremented-is-never-exported rule.)
upstream_rq_pending_failure_eject flat on every mesh cluster (echo 596, authz-echo 10, uds-echo 8, uds-cr-echo 9) and on otel_collector.
No envoy_cluster_ssl_connection_error_total series anywhere in the window.
Prober: no connection_error series on any of the five current prober pods. Siblings result="success"|"timeout"|"http_error"are exported from those same pods, so that zero is
real, not an absence artefact.
New-epoch LDS envoy_listener_manager_lds_update_time landed within seconds on every node —
17:38:54.274 (w04), 17:39:16.398 (w02), 17:39:28.699 (w05), 17:39:38.796 (w03),
17:39:53.467 (w01) — versus the 40 s pathological value on rev225/w01.
Why this negative counts, unlike the 0/55. I first assumed there was no connection-churning
client (no k6 runners exist on the cluster; the egress listener carried a flat 5.00 rq/s over
1–2 connections per node). That was wrong. The prober's mesh_dns tier already runs
connect-per-probe — newClient(false) / DisableKeepAlives, prober/internal/prober/prober.go:140-150, chosen deliberately at :199-214 so every probe
re-resolves. I confirmed it empirically rather than trusting the comment:
sum by (node) (rate(envoy_http_capture_http_downstream_cx_total[2m]))
# 12.2 / 10.0 / 10.0 / 10.0 / 10.0 — dead flat, no dip, whole window
~10 brand-new TCP connections per second per node, continuously, straight through every
handoff. A 1.4 s node-wide accept gap on the capture path would have produced ~14 refused dials
per affected node and a visible dip in that rate. Neither appeared, on any node, across
9 epoch transitions.
So for the capture path this is a genuine, sensitive, clean negative — not another
prober-blindness result.
4. The one surface that is still untested
#823's rev225 signature was connection_error on both tiers: liveness/egress 6 and
mesh_dns 15+15. The mesh_dns half is now well covered. The liveness half is not:
The liveness tier hits 127.0.0.1:18081 and uses the keep-alive client
(prober.go:180-188, client: p.client).
envoy_http_outbound_http_downstream_cx_total = 1–2 per node for the Envoy's entire
lifetime, and it did not step during the roll.
So the egress listener's accept path is probed by exactly one long-lived connection. A short
accept gap there is invisible to it unless it happens to coincide with the single redial. That
is the remaining blind spot, and it is narrow and specific.
5. New lead: a deploy produces TWO epochs per node, a rollout restart produces one
envoy_server_hot_restart_epoch over the roll:
node
start → end
increments
w01
2 → 4
2
w03
4 → 6
2
w04
3 → 5
2
w05
4 → 6
2
w02
4 → 5
1
The supervisor runs with --watch-config=true (agent-proxy-daemonset.yaml:104, 500 ms
debounce). A chart bump rewrites the proxy configmap, so after the pod replacement the projected /etc/envoy/envoy.yaml changes under the new pod and the supervisor hot-restarts Envoy again,
in place.
That matters because it cleanly separates the two populations:
Deploys (rev221, rev225, rev229) change the configmap → ~2 handoff windows per node.
kubectl rollout restart ds/aether-proxy (the 11×55 loop) does not → 1 window per node.
#823 reproduced only on deploys — 0/55 on restarts. This is now a second candidate
discriminator alongside "the agent rolled too", and unlike that one it is a property of the
proxy alone. It should be confirmed from supervisor logs before being trusted (the epoch series
collides across pods, same caveat as §2).
6. Mechanism: ranked
H1 — the parent Envoy shuts down on an unconditional timer, regardless of whether the child
has listeners.buildEnvoyCmd passes --parent-shutdown-time-s 15
(agent/internal/proxy/hotrestart/supervisor.go:840-856, from proxy.hotRestart.parentShutdownTime = 15s, charts/aether/values.yaml:377). Nothing
conditions that timer on the child having received LDS. Reinforcing this: the readiness marker
gates only on Envoy admin reporting state == LIVE at the newest epoch
(hotrestart/coordination.go:170-240) — it does not wait for listeners, LDS, or any xDS
convergence. And the bootstrap sets no initial_fetch_timeout on lds_config/cds_config
(bare ads: {}, charts/aether/templates/agent-proxy-configmap.yaml:340-349); only RDS pins one
(agent/internal/xds/proxy/route.go:42, 15 s, from #817).
Why LDS can be late specifically on a deploy: the agent's PreListen calls holdForIdentity(ctx)first and unbounded (agent/internal/xds/server/server.go:160-183) —
a freshly-rolled agent serves no xDS at all until it has its own SVID. The proxy's listeners are
per-workload-netns (34 on w01) and all of them come from that one LDS.
Honest tension: this predicts a gap of (LDS arrival − child start − 15 s), which for rev225/w01
(LDS +40 s) is ~25 s, whereas the observed burst was ~1.4–3 s. Either the 40 s update_time was
a second LDS update and an earlier local-only one arrived sooner, or the model is incomplete. I
could not resolve this from telemetry and am not going to paper over it.
H2 — listen-socket handoff gap. If the child does not inherit the parent's listen FDs
(base-id collision, hot restart declined) it must rebind after the parent closes; ~1.4 s is a
plausible bind-after-close latency for 25–34 per-netns listeners. Discriminator: aether_supervisor_predecessor_detected = 0 on the affected node, plus bind_collision/maxBindCollisionRetries activity in the supervisor log.
H3 — the two-phase drain (#152). Ruled out, and I want it struck off. That path governs upstream endpoint health for workload pods (DRAINING → delayed pool-close). #823's symptom is
a refused dial to the node's own egress listener — downstream-side, upstream of nothing.
Two-phase drain cannot produce it. It should stop being a suspect.
7. User-visibility verdict
For the capture path: genuinely not user-visible, and now properly measured — ~10 fresh
dials/s/node through 9 handoffs, zero errors, no dip.
Overall: I am not signing this off as "absorbed by retries." Two reasons:
The egress-listener accept path (§4) still has no instrument that can see a gap.
The ~510 unlogged k6 failures on w03/w04/w05 from the rev226 soak (comment above,
2026-09-20T07:44Z) remain unexplained. Requests that produced no access-log line at any proxy
are, by definition, client-visible failures that the mesh never saw.
Note also that rev229's roll was watched under prober-only load (5 rq/s egress, ~10 conn/s
capture). That is enough to clear the capture path; it is not representative of a soak.
8. Recommended disposition: do not close, do not engineer a data-plane fix yet
The honest state is: one of two probe surfaces is now clean and well-measured; the other has no
usable instrument. Closing now would be closing on the strength of a measurement we know is
blind — the same mistake the "0/55" result turned out to be. Equally, changing drain or hot-restart
behaviour on H1 when its own arithmetic does not close would be inventing work.
Step 1 — close the egress blind spot (small, prober-only, no production code)
Add a fourth target to the liveness tier that dials fresh each probe, alongside the existing
keep-alive one rather than replacing it (the existing series is the SLI and must not change):
File: /home/palermo/code/bpalermo/aether/prober/internal/prober/prober.go, the liveness
block at lines 180–188.
The detector then is aether_probe_requests_total{tier="liveness",target="egress_dial",result="connection_error"}.
p.dnsClient is already the DisableKeepAlives client, so this is genuinely a few lines plus a
test. Run make gazelle + make test after.
How this gate is proven able to FAIL — mandatory before any result from it counts. Two
levels, because aether#853 shipped a gate that could not fail:
Hermetic: a test in prober_test.go that points the new target at a closed port and asserts result="connection_error" is recorded. Fails loudly if classifyErr
(prober.go:404) ever reclassifies it.
In-cluster: induce a real blackout on one node and confirm the new series moves roughly in
proportion to the gap. The runbook already documents the reference magnitude — a supervisor
that won the race against its own replacement cost 7.95 s / 8.11 s of blackout and 130 / 126 prober connection_errors per delete on rev214. If an induced ~8 s blackout
yields zero on target="egress_dial", the tier is vacuous and must not be shipped.
Step 2 — confirm the two-epochs-per-deploy finding (§5)
Cheap, and it may reframe the whole issue. From supervisor logs on one node across a chart bump:
count predecessor_detected / "live predecessor confirmed" versus in-place config-watch
restarts. If a deploy really is two handoffs per node while a rollout restart is one, then the
0/55 restart-loop result was never testing the same event, and the reproduction recipe changes to
"bump something in the proxy configmap".
Step 3 — only then re-measure
With Step 1 shipped and falsified, and Step 2 answered: roll agent + proxy together (a
proxy-only roll is known not to reproduce), under k6 constant-arrival-rate load with keep-alives
disabled on a fraction of VUs, sampling at 5 s. Pass = zero egress_dial connection errors
across N node-rolls, with the Step-1 falsification on record.
Worth doing regardless, but explicitly not a fix
Promote a pod-identifying label onto node-proxy envoy_* series (the resource attributes k8s.pod.name/k8s.pod.uid are already exported; only the collector-side promotion in
k8s-talos-main is missing). Every handoff measurement in this issue has been corrupted by
old/new pod collision — twice now. Gate: during a roll, count by (node) (envoy_server_hot_restart_epoch) must read 2 for the overlap window; if it
never reads 2, the label did not take.
Pin connect_timeout on the agent_xds cluster
(charts/aether/templates/agent-proxy-configmap.yaml:397-417). It is the only static cluster
with none — authz_sidecar sets 1s (:359), otel_collector sets 2s (:422). Hygiene, not
a fix: measured upstream_cx_connect_timeout is zero, so timeouts are not what is happening.
Widen proxy.hotRestart.parentShutdownTime on H1's strength alone — H1's arithmetic does not
close, and widening it would mask the symptom on the prober while leaving the mechanism intact.
Queries used
envoy_cluster_upstream_cx_connect_fail_total{aether_cluster="agent_xds"} # raw, not increase()
envoy_cluster_upstream_rq_pending_failure_eject_total
envoy_cluster_upstream_cx_connect_timeout_total{aether_cluster="agent_xds"} # empty; family exists
envoy_control_plane_connected_state
envoy_server_hot_restart_epoch
envoy_listener_manager_total_listeners_active
envoy_listener_manager_lds_update_time
envoy_http_outbound_http_downstream_cx_total
sum by (node) (rate(envoy_http_capture_http_downstream_cx_total[2m])) # the sensitivity proof
sum by (node) (rate(envoy_http_outbound_http_downstream_rq_total[2m]))
aether_probe_requests_total
Confirmed (with a correction): a deploy is pod replacement plus an in-place hot restart — but the in-place one happens in the outgoing pod
Chased this on the rev230 deploy (helm rev 230, chart aether-0.93.1-8d0d5da6…, DaemonSet gen 350). The two-epochs-per-deploy hypothesis is confirmed. The one correction to the framing: the extra hot restart is not the incoming pod reacting to the configmap — it is the still-Ready outgoing pod hot-restarting in place before its replacement is even created.
This directly answers the third "To establish" bullet ("whether this deploy's chart change — a stats_tags entry → bootstrap change → a restart with a new bootstrap rather than a pure image roll — matters"): yes, decisively.
Mechanism
aether-proxy-config has a stable name (aether.proxy.configMapName → printf "%s-config", charts/aether/templates/_helpers.tpl:128) and the proxy pod template carries no configmap checksum annotation (charts/aether/templates/agent-proxy-daemonset.yaml — template.metadata has labels only). So Helm mutates the existing ConfigMap object in place. Its managedFields timestamp for this deploy is 2026-09-20T17:38:50Z.
Every already-running proxy pod mounts that same object. The kubelet's volume re-sync rewrites /etc/envoy/envoy.yaml underneath the live pod, fsnotify fires in Supervisor.watchConfig (agent/internal/proxy/hotrestart/supervisor.go:774, watching the directory so it survives the ..data symlink swap), the 500 ms debounce coalesces, and handleDebounce runs envoy --mode validate then logs "performing hot restart" (supervisor.go:596) and forks epoch N+1 inside the same pod. Then, separately, the DaemonSet's rolling replacement arrives and does the ordinary cross-pod handoff to epoch N+2.
Evidence (rev230)
The four in-place restarts are in the logs of four pods that no longer exist — recovered from VictoriaLogs, not from the live pods. All five current pods' supervisors logged exactly one "starting envoy" and zero"performing hot restart": the incoming pods never hot-restarted in place.
node
outgoing pod
performing hot restart
Δ from CM write
incoming pod (created)
cross-pod fork (live predecessor confirmed)
epoch
w04
aether-proxy-57v2h
17:38:52.700Z
+2.7 s
aether-proxy-jz825 (+28 s)
17:39:25.696Z — pred 4 → start 5
3→4→5
w05
aether-proxy-z92mk
17:39:16.840Z
+26.8 s
aether-proxy-d9jr9 (+80 s)
17:40:17.041Z — pred 5 → start 6
4→5→6
w01
aether-proxy-sj8kp
17:39:26.811Z
+36.8 s
aether-proxy-2gckv (+54 s)
17:39:51.298Z — pred 3 → start 4
2→3→4
w03
aether-proxy-89ww7
17:39:37.156Z
+47.2 s
aether-proxy-2vx4j (+106 s)
17:40:41.816Z — pred 5 → start 6
4→5→6
w02
aether-proxy-pmsw9
none
—
aether-proxy-6trv6 (+1 s)
17:38:59.014Z — pred 4 → start 5
4→5
Every in-place restart timestamp precedes its node's replacement pod, and each incoming supervisor's predecessorEpoch equals the post-in-place value. The two are independent events.
w02 explained — a genuine +1, not a sampling miss
Resolution-independent proof, so the 10-minute step is irrelevant: w02's incoming supervisor logged predecessorEpoch: 4, startEpoch: 5, heartbeatAge: 884ms at 17:38:59.014Z. 4 is exactly the pre-deploy value. The epoch is a monotone integer read from the shared heartbeat file — an extra restart cannot hide between two equal integers.
Corroborating: the outgoing pod aether-proxy-pmsw9's complete INFO log for 17:36–17:42Z is a textbook clean cross-pod handoff with no in-place restart — holding readiness: serving as hot-restart parent mid-handoff (17:39:00.133, epoch 4) → termination requested mid-handoff; waiting for successor to terminate our envoy (17:39:18.909, successorWaitBudget: 155s) → envoy epoch terminated by successor / reaped envoy epoch 4 / successor took over during shutdown wait (17:39:31.993).
Cause: w02 was the first node in the rolling update and won the race. Helm wrote the ConfigMap at 17:38:50Z; w02's replacement was created at 17:38:51Z (+1 s) and forked epoch 5 at 17:38:59Z — before w02's kubelet re-synced the ConfigMap volume into the outgoing pod. On the other four nodes the replacement arrived +28/+54/+80/+106 s, leaving the outgoing pod alive and Ready long enough for its own kubelet re-sync to fire.
Note the kubelet re-sync is staggered per node (+2.7 / +26.8 / +36.8 / +47.2 s), not simultaneous. That is worth recording because handleDebounce's comment asserts "every supervisor sees a ConfigMap change at the same time (fsnotify)" — the fsnotify reaction is instant, but the kubelet propagation that triggers it is spread over ~45 s here. It still lands on all nodes inside ~1 minute, so the fleet-wide-simultaneity concern behind the envoy --mode validate pre-check stands; the premise is just imprecise.
A weaker signal, offered as corroboration only: w02 is the only node carrying an aether_supervisor_restart_triggers_total{aether_supervisor_trigger="deferred_not_live"} series in that window, which is the state handleDebounce enters when the current epoch is no longer admin-LIVE — exactly an outgoing pod whose successor has taken the admin port. I would not lean on it: that metric has only a node label (no pod), so outgoing and incoming deltas sum into one series and cannot be attributed.
This also reproduced on rev225 — the very deploy in this issue
envoy_server_hot_restart_epoch{node="main-worker-01"}, 2026-09-19, 15 s step, raw counter:
≤ 20:34:15Z → 22
20:34:30Z → 23
20:35:00Z → 24
w01's replacement pod started 20:34:47Z (per the issue body). So epoch 23 existed before the incoming pod did — an in-place restart in the outgoing pod, ~17–32 s ahead of the cross-pod handoff to 24. The original observation was made against a node that had two handoff windows, and the investigation plan above ("the supervisor's handoff log … whether the outgoing epoch stopped listening before the incoming one was accepting") would have missed the first one entirely, because it is not a pod handoff at all.
Reproduction recipe (not executed)
Because the pod template has no checksum annotation and the ConfigMap name is stable, a change touching only the rendered envoy.yaml does not roll the DaemonSet at all — it produces exactly one in-place hot restart per node and zero pod replacements. That cleanly isolates the in-place window from the cross-pod window.
Trigger: a cosmetic edit to the rendered bootstrap via the HelmRelease values in bpalermo/k8s-talos-main (a live helm upgrade gets reverted by Flux) — e.g. add or remove a stats_tags entry, which is exactly the kind of change rev225 carried.
Expect: no pod churn (pod AGE unchanged, RESTARTS 0); envoy_server_hot_restart_epoch{node=...}+1 on all five nodes; one "performing hot restart" INFO per node.
Measure: prober connection_error per node at 5 s resolution across the window, as raw counters (node-proxy envoy_* series carry only a node label, so increase() aliases across pods — though on this path there is no second pod, which is itself part of why it is the cleaner experiment).
Blast radius, state it up front: this path bypasses the DaemonSet rolling update entirely. All five nodes restart Envoy within ~1 minute of each other with no rolling gate, no surge pod, and no readiness gating — precisely the shape of the rev-64 incident (2026-06-11, 13-minute cluster outage) that the node-local envoy --mode validate pre-check was added to guard. Run it under the prober watching the whole fleet, not as a casual poke.
The two windows per node are 24.5 s / 33.0 s / 60.2 s / 64.7 s apart on rev230, and ~15–30 s apart on rev225/w01. They never overlap, so the ~1.4 s burst cannot be a superposition of the two — each burst attributes to exactly one window. The 1.4 s-vs-~25 s gap against the unconditional --parent-shutdown-time-s 15 hypothesis is unchanged.
What it does change is which window to suspect, and it reframes the 0/55:
It adds a window with entirely different properties. The in-place restart has no Kubernetes participation at all: no new pod, no readiness transition, no successorReadyGate (initStartEpoch applies that only to a cross-pod successor), no endpoint change — the pod stays Ready throughout. So --parent-shutdown-time-s 15 and the ready-marker gating, the whole basis of the ~25 s prediction, do not apply to it. A ~1.4 s gap is a far better fit for a pure in-Envoy listener handover than for a 15 s parent-shutdown timer.
It explains 0/55 directly.kubectl rollout restart never rewrites aether-proxy-config, so all 55 rollout-restarts exercised only the cross-pod window. If the burst originates in the in-place window, 55 rollout-restarts could never have reproduced it — the measurement was structurally blind to it, not evidence of a low rate.
So: the deploy-only reproduction is now explained, and the prime suspect should shift from the cross-pod handoff to the in-place epoch bump. The arithmetic gap stays open and still needs closing.
Evidence discipline / caveats
arm()'s "hot restart armed" (with reason) and handleDebounce's "current epoch not yet live; deferring hot restart" are DEBUG; the containers run at INFO, so their absence proves nothing. Every positive claim above rests on INFO lines: "performing hot restart" (emitted immediately before every hotRestart()), "starting envoy", and "live predecessor confirmed; starting cross-pod hot restart".
aether_supervisor_restart_triggers_total is delta-temporality push with only a node label: never-incremented series are absent entirely, and old/new pod deltas sum. Used as corroboration only, never for attribution.
All epoch values read as raw counters at 15 s step, never increase().
Read-only throughout: no rolls, restarts, deletes or helm upgrades; no kubectl exec.
Two 8h soaks have now passed without reproducing this — but neither one could have seen it
rev231 (2026-09-20) and rev234 (2026-09-22), six proxy rolls each, twelve in total. Prober connection_error on the liveness tier: 0 in both runs.
That is not evidence this is fixed.#846 established that the prober is structurally blind to this class: it rides a single keep-alive connection, while k6's 60 VUs each eat a refused dial. The rev234 run demonstrated that blindness concretely — a 33-request upstream-timeout burst appeared in k6 and in the access logs and was completely absent from 2,159,996 prober probes.
So "0 in 12 proxy rolls" means 0 visible to the wrong instrument, exactly as this issue's history already warned.
What the right instrument saw instead
rev234's full k6 residual is now attributed, per-node, against the source proxies' access logs (details in #846). All 33 failures were:
response_code: 504, response_flags: UT — upstream timeout
to one authority, svc-3
inside one 10-minute bucket containing the TRIPLE at T0+300m, where agent + proxy + svc-3 roll concurrently
None of them are this issue's signature.#823 is ~1.4s of connection_error during the proxy pod handoff — a refused dial. What rev234 produced was an upstream timeout against a service being rolled at the same moment. Different flag, different cause.
Status
Not reproduced, and not cleared either. The honest position is that this has not been measured with an instrument capable of seeing it since #846 identified the problem.
To actually settle it, the next run needs per-node k6 failures broken down by class and time — which is what #887 is adding — and those correlated against ROLLED aether-system/daemonset/aether-proxy timestamps specifically, rather than against the run as a whole. The reconciliation method is now established and cheap to repeat (#846 comment has the LogsQL query path).
Closing as not reproduced. The one observation (rev225 deploy, 2026-09-19: 36 connection_error in a ~1.4 s window on main-worker-01 during the proxy handoff) predates #829/#834 (upstream TLS session resumption re-serving a stale SVID, fixed 2026-09-20). Since then, on every build up to rev242/0.95.3: six proxy rolls in the 2026-09-26 8h soak (prober 0 non-success on 2,159,992 requests), the three measured #967 validation rolls and two deploy rolls on 2026-09-26/27, and the running 2026-09-27 soak's rolls so far — zero prober connection_error on any node. If it recurs it gets a fresh issue with the roll timeline attached.
Activity
bpalermo commentedon Sep 19, 2026
Measured: 0 / 55 node-rolls — and like #817, this is not a proxy-handoff defect
11 deliberate
rollout restart ds/aether-proxy(55 node-rolls, 50 clean) on rev225 /0.92.28-e4af095: zeroconnection_errorat handoff. The only proberconnection_errorin the window were the 36 inherited frozen from the rev225 deploy itself. ZeroDC, zeroUCfleet-wide.Both prior occurrences happened during deploys that rolled the agent too. Hard evidence for this one: on the original w01 occurrence the new proxy pod started 20:34:47Z and LDS did not load until 20:35:27.16Z — 40 s later. In the loop, the same node took 3.3 s. The gap was the agent having nothing to serve, not the handoff being ungraceful. Re-ranking: agent-roll / xDS-availability, same family as #817.
The handoff itself is healthy, with numbers
The roll is a cross-pod hot restart:
predecessor_detected= 1 on all five nodes,hot_restart_epoch25→28+, one increment per roll. Branch and timings (w01, roll 1):live predecessor confirmed(epoch 25→26, heartbeatAge 968 ms)closing and draining listenerspod ready: envoy live at newest epochtermination requested mid-handoff; waiting for successor(budget 155 s)envoy epoch terminated by successor~22 s per node, ~118 s per roll, new pod Ready before the old one is deleted, every time.
Refused dial versus reset — answered
downstream_cx_total= 1 per epoch withdownstream_rq_totalin the hundreds: the prober rides a single keep-alive connection. So a handoff that breaks that connection yields a burst of errors until it redials, with nothing ever actually being unreachable. That is exactly #823's shape, and it means the symptom is a connection-reuse artefact of the measurement client rather than a period of unavailability.In 55 node-rolls the replacement was always graceful, so the break itself did not occur — consistent with the defect living in the agent-roll path.
Measurement caveat worth keeping
Envoy series carry only a
nodelabel, no pod or instance label, so old and new pod series collide during the handoff window — the same class as the edge bug fixed in #809. Use theupdate_timegauges when ordering matters. Worth adding a per-pod label so handoff windows stop colliding; that would have made both this and #817 far easier to measure.bpalermo commentedon Sep 20, 2026
The prober was the wrong instrument: ~510 k6 failures produced no access log line at all
This revises the earlier "0 in 55 node-rolls" result. That measurement used the prober, and the prober cannot see this.
Reconciling each k6 runner's own
http_req_failedagainst the source proxies' access logs for that runner's pod, whole rev226 soak (8h30m, 9,179,969 iterations, 668 failures):http_req_failedw01 and w02 reconcile exactly. w03, w04 and w05 do not — roughly 510 failures produced no access-log line at any proxy, meaning the request never reached a proxy that could log it. That is consistent with the local proxy being absent or draining, and not with anything the mesh did to a request it received.
w05's ten logged failures are unremarkable:
503 UCspread across five clusters (echo 3, svc-1 2, svc-3 2, svc-4 2, svc-2 1), and a separate check for non-4xx flagged lines from that pod found no others.Why the prober missed it and k6 did not
The prober rides a single keep-alive connection (
downstream_cx_total= 1 per epoch against hundreds of requests). A handoff that breaks that connection costs one reconnect and shows up, if at all, as a shortconnection_errorburst. k6 runs 60 VUs opening and reusing many connections, so a window where nothing is accepting produces a refused dial per affected VU, directly.So k6's unlogged failures are a far more sensitive instrument for this defect than the prober is, and the earlier "0 occurrences in 55 node-rolls" should be read as 0 occurrences visible to the prober, not as absence.
Two things this does not yet establish
Why w01 and w02 are clean. Both reconcile at exactly zero unlogged while the other three sit at 126–254. Six proxy rolls hit every node equally, so a per-roll gap should be roughly uniform. It is not, and no cause is proposed here.
What the 510 actually are. No mechanism has been demonstrated — only that the requests never reached a loggable proxy. The handoff window is the obvious candidate given the shape, but that is a hypothesis, not a finding.
Also worth recording against the identity defect: w01's 107 reconciles exactly and 94 of it is #829. So the node carrying the identity bug logged every one of its failures, while the three nodes with no #829 have most of theirs invisible to the mesh entirely. Two separate failure populations, and only one of them is in the access logs — which is why the aggregate 0.00728% error rate conceals rather than reveals the interesting structure.
Suggested next measurement
Correlate the unlogged failures' timestamps against proxy pod handoff windows per node. k6 does not emit per-request timestamps in its summary, so this needs either a k6 output stream with timestamps, or per-node
upstream_cx_connect_fail/ listenerdownstream_cx_destroycounters sampled across each roll.Credit: the reconciliation was measured platform-side by the infra peer against the access logs; the interpretation here is mine.
bpalermo commentedon Sep 20, 2026
rev229 re-measurement: did not reproduce — and the 29 connect failures are not this bug
Measured on talos-main, chart
aether-0.93.1-8d0d5da683f7055acebf5f9d3318f10b82ce81e0, applied2026-09-20T17:38:44Z, roll complete 17:41:10Z. Read-only; nothing was mutated.
Headline: the 29
upstream_cx_connect_failin that window are 100 % on theagent_xdscluster — Envoy's ADS socket to the node agent — and they are caused by the agent
DaemonSet rolling, not by the proxy handoff. Zero data-plane clusters were affected. Separately,
this roll produced two Envoy epochs per node on 4 of 5 nodes, which I think is the missing
discriminator between "deploy" and "rollout restart" and is the most useful new lead here.
1. What actually rolled
All three node DaemonSets rolled together, uncoordinated:
aether-agentaether-mesh-dnsaether-proxySo rev229 did satisfy the precondition both prior occurrences shared (an agent-rolling
deploy), and still did not reproduce.
2. The 29 connect failures are the agent roll, control-plane only
Raw counter,
envoy_cluster_upstream_cx_connect_fail_total{aether_cluster="agent_xds"}(not
increase()— see the caveat below):Corroborating, same nodes, same instants:
envoy_cluster_upstream_rq_pending_failure_eject_total{aether_cluster="agent_xds"}steps bythe same magnitude (w02 1→9, w03 1→5, w04 5→10, w05 1→9). The ejected pending requests
are the ADS stream requests.
envoy_control_plane_connected_statedips to 0 for 1–2 samples on all five nodes,staggered with each node's own epoch bump.
envoy_cluster_upstream_cx_connect_timeout_total{aether_cluster="agent_xds"}has no seriesat all, while that metric name exists with 4 series elsewhere in the same window. So these
are refused connects (the UDS is not being listened on), not timeouts.
agent_xdspending ejects. The edge proxyis not part of the proxy DaemonSet — it lost its ADS stream purely because the node agent
under it was replaced.
Mechanism: the node agent pod is replaced →
/run/aether/xds.sockstops accepting →every Envoy on that node (node proxy and edge) gets ECONNREFUSED for a handful of retries →
reconnects. Envoy keeps serving from its last good snapshot throughout. This is benign by
design and it is not #823.
Caveat on the aggregate that produced "29"
sum(increase(envoy_cluster_upstream_cx_connect_fail_total[2m]))is not safe here. Node-proxyenvoy_*series carry onlynode— there is no pod or instance label (the edge proxies do getinstance+job; percharts/aether/templates/agent-proxy-daemonset.yaml:164the proxy exportsk8s.pod.name/k8s.pod.uidas OTLP resource attributes, but the collector deliberatelypromotes only
k8s.node.name, and only foragent_xds/otel_collector). During the ~20 ssurge overlap, samples therefore alternate between the outgoing and incoming pod. On w01 the
raw counter was flat at 5 with a single
4sample, andincrease()still reported ≈16 overthe window. Phantom. This is the same class as #809 and it has now corrupted a measurement in
this issue twice.
3. The data plane was untouched — and this time that negative is meaningful
envoy_listener_manager_total_listeners_active: flat 34 / 28 / 25 / 25 / 19 at every 15 ssample across the whole roll. No dip, never zero.
envoy_cluster_upstream_cx_connect_fail_totalon every mesh cluster: flat. (aether-test/echoon w04 is present and flat — the family is demonstrably collected from node proxies, so the
absent series elsewhere are true zeros under Envoy's never-incremented-is-never-exported rule.)
upstream_rq_pending_failure_ejectflat on every mesh cluster (echo596,authz-echo10,uds-echo8,uds-cr-echo9) and onotel_collector.envoy_cluster_ssl_connection_error_totalseries anywhere in the window.connection_errorseries on any of the five current prober pods. Siblingsresult="success"|"timeout"|"http_error"are exported from those same pods, so that zero isreal, not an absence artefact.
envoy_listener_manager_lds_update_timelanded within seconds on every node —17:38:54.274 (w04), 17:39:16.398 (w02), 17:39:28.699 (w05), 17:39:38.796 (w03),
17:39:53.467 (w01) — versus the 40 s pathological value on rev225/w01.
Why this negative counts, unlike the 0/55. I first assumed there was no connection-churning
client (no k6 runners exist on the cluster; the egress listener carried a flat 5.00 rq/s over
1–2 connections per node). That was wrong. The prober's mesh_dns tier already runs
connect-per-probe —
newClient(false)/DisableKeepAlives,prober/internal/prober/prober.go:140-150, chosen deliberately at:199-214so every probere-resolves. I confirmed it empirically rather than trusting the comment:
~10 brand-new TCP connections per second per node, continuously, straight through every
handoff. A 1.4 s node-wide accept gap on the capture path would have produced ~14 refused dials
per affected node and a visible dip in that rate. Neither appeared, on any node, across
9 epoch transitions.
So for the capture path this is a genuine, sensitive, clean negative — not another
prober-blindness result.
4. The one surface that is still untested
#823's rev225 signature wasconnection_erroron both tiers: liveness/egress6 andmesh_dns 15+15. The mesh_dns half is now well covered. The liveness half is not:
127.0.0.1:18081and uses the keep-alive client(
prober.go:180-188,client: p.client).envoy_http_outbound_http_downstream_cx_total= 1–2 per node for the Envoy's entirelifetime, and it did not step during the roll.
So the egress listener's accept path is probed by exactly one long-lived connection. A short
accept gap there is invisible to it unless it happens to coincide with the single redial. That
is the remaining blind spot, and it is narrow and specific.
5. New lead: a deploy produces TWO epochs per node, a
rollout restartproduces oneenvoy_server_hot_restart_epochover the roll:The supervisor runs with
--watch-config=true(agent-proxy-daemonset.yaml:104, 500 msdebounce). A chart bump rewrites the proxy configmap, so after the pod replacement the projected
/etc/envoy/envoy.yamlchanges under the new pod and the supervisor hot-restarts Envoy again,in place.
That matters because it cleanly separates the two populations:
kubectl rollout restart ds/aether-proxy(the 11×55 loop) does not → 1 window per node.#823 reproduced only on deploys — 0/55 on restarts. This is now a second candidate
discriminator alongside "the agent rolled too", and unlike that one it is a property of the
proxy alone. It should be confirmed from supervisor logs before being trusted (the epoch series
collides across pods, same caveat as §2).
6. Mechanism: ranked
H1 — the parent Envoy shuts down on an unconditional timer, regardless of whether the child
has listeners.
buildEnvoyCmdpasses--parent-shutdown-time-s 15(
agent/internal/proxy/hotrestart/supervisor.go:840-856, fromproxy.hotRestart.parentShutdownTime=15s,charts/aether/values.yaml:377). Nothingconditions that timer on the child having received LDS. Reinforcing this: the readiness marker
gates only on Envoy admin reporting
state == LIVEat the newest epoch(
hotrestart/coordination.go:170-240) — it does not wait for listeners, LDS, or any xDSconvergence. And the bootstrap sets no
initial_fetch_timeoutonlds_config/cds_config(bare
ads: {},charts/aether/templates/agent-proxy-configmap.yaml:340-349); only RDS pins one(
agent/internal/xds/proxy/route.go:42, 15 s, from #817).Why LDS can be late specifically on a deploy: the agent's
PreListencallsholdForIdentity(ctx)first and unbounded (agent/internal/xds/server/server.go:160-183) —a freshly-rolled agent serves no xDS at all until it has its own SVID. The proxy's listeners are
per-workload-netns (34 on w01) and all of them come from that one LDS.
Honest tension: this predicts a gap of (LDS arrival − child start − 15 s), which for rev225/w01
(LDS +40 s) is ~25 s, whereas the observed burst was ~1.4–3 s. Either the 40 s
update_timewasa second LDS update and an earlier local-only one arrived sooner, or the model is incomplete. I
could not resolve this from telemetry and am not going to paper over it.
H2 — listen-socket handoff gap. If the child does not inherit the parent's listen FDs
(base-id collision, hot restart declined) it must rebind after the parent closes; ~1.4 s is a
plausible bind-after-close latency for 25–34 per-netns listeners. Discriminator:
aether_supervisor_predecessor_detected= 0 on the affected node, plusbind_collision/maxBindCollisionRetriesactivity in the supervisor log.H3 — the two-phase drain (#152). Ruled out, and I want it struck off. That path governs
upstream endpoint health for workload pods (DRAINING → delayed pool-close). #823's symptom is
a refused dial to the node's own egress listener — downstream-side, upstream of nothing.
Two-phase drain cannot produce it. It should stop being a suspect.
7. User-visibility verdict
For the capture path: genuinely not user-visible, and now properly measured — ~10 fresh
dials/s/node through 9 handoffs, zero errors, no dip.
Overall: I am not signing this off as "absorbed by retries." Two reasons:
2026-09-20T07:44Z) remain unexplained. Requests that produced no access-log line at any proxy
are, by definition, client-visible failures that the mesh never saw.
Note also that rev229's roll was watched under prober-only load (5 rq/s egress, ~10 conn/s
capture). That is enough to clear the capture path; it is not representative of a soak.
8. Recommended disposition: do not close, do not engineer a data-plane fix yet
The honest state is: one of two probe surfaces is now clean and well-measured; the other has no
usable instrument. Closing now would be closing on the strength of a measurement we know is
blind — the same mistake the "0/55" result turned out to be. Equally, changing drain or hot-restart
behaviour on H1 when its own arithmetic does not close would be inventing work.
Step 1 — close the egress blind spot (small, prober-only, no production code)
Add a fourth target to the liveness tier that dials fresh each probe, alongside the existing
keep-alive one rather than replacing it (the existing series is the SLI and must not change):
/home/palermo/code/bpalermo/aether/prober/internal/prober/prober.go, the livenessblock at lines 180–188.
target{tier: tierLiveness, name: "egress_dial", url: same, authority: same, client: p.dnsClient}.aether_probe_requests_total{tier="liveness",target="egress_dial",result="connection_error"}.p.dnsClientis already theDisableKeepAlivesclient, so this is genuinely a few lines plus atest. Run
make gazelle+make testafter.How this gate is proven able to FAIL — mandatory before any result from it counts. Two
levels, because aether#853 shipped a gate that could not fail:
prober_test.gothat points the new target at a closed port and assertsresult="connection_error"is recorded. Fails loudly ifclassifyErr(
prober.go:404) ever reclassifies it.proportion to the gap. The runbook already documents the reference magnitude — a supervisor
that won the race against its own replacement cost 7.95 s / 8.11 s of blackout and
130 / 126 prober
connection_errors per delete on rev214. If an induced ~8 s blackoutyields zero on
target="egress_dial", the tier is vacuous and must not be shipped.Step 2 — confirm the two-epochs-per-deploy finding (§5)
Cheap, and it may reframe the whole issue. From supervisor logs on one node across a chart bump:
count
predecessor_detected/"live predecessor confirmed"versus in-place config-watchrestarts. If a deploy really is two handoffs per node while a
rollout restartis one, then the0/55 restart-loop result was never testing the same event, and the reproduction recipe changes to
"bump something in the proxy configmap".
Step 3 — only then re-measure
With Step 1 shipped and falsified, and Step 2 answered: roll agent + proxy together (a
proxy-only roll is known not to reproduce), under k6 constant-arrival-rate load with keep-alives
disabled on a fraction of VUs, sampling at 5 s. Pass = zero
egress_dialconnection errorsacross N node-rolls, with the Step-1 falsification on record.
Worth doing regardless, but explicitly not a fix
envoy_*series (the resource attributesk8s.pod.name/k8s.pod.uidare already exported; only the collector-side promotion ink8s-talos-main is missing). Every handoff measurement in this issue has been corrupted by
old/new pod collision — twice now. Gate: during a roll,
count by (node) (envoy_server_hot_restart_epoch)must read 2 for the overlap window; if itnever reads 2, the label did not take.
connect_timeouton theagent_xdscluster(
charts/aether/templates/agent-proxy-configmap.yaml:397-417). It is the only static clusterwith none —
authz_sidecarsets1s(:359),otel_collectorsets2s(:422). Hygiene, nota fix: measured
upstream_cx_connect_timeoutis zero, so timeouts are not what is happening.What I deliberately would not do
initial_fetch_timeouton LDS/CDS. Per proxy roll: a new Envoy epoch served 404 NR (route_not_found) on the egress listener for 2.8 s before it was Ready — first non-zero liveness since 08-02 #817/Unverified: does a node draining to zero meshed pods tear down the shared out_http route-config provider? #844 that field is fail-open and hasnever been a gate; adding it would be motion without a mechanism.
proxy.hotRestart.parentShutdownTimeon H1's strength alone — H1's arithmetic does notclose, and widening it would mask the symptom on the prober while leaving the mechanism intact.
Queries used
bpalermo commentedon Sep 20, 2026
Confirmed (with a correction): a deploy is pod replacement plus an in-place hot restart — but the in-place one happens in the outgoing pod
Chased this on the rev230 deploy (helm rev 230, chart
aether-0.93.1-8d0d5da6…, DaemonSet gen 350). The two-epochs-per-deploy hypothesis is confirmed. The one correction to the framing: the extra hot restart is not the incoming pod reacting to the configmap — it is the still-Ready outgoing pod hot-restarting in place before its replacement is even created.This directly answers the third "To establish" bullet ("whether this deploy's chart change — a
stats_tagsentry → bootstrap change → a restart with a new bootstrap rather than a pure image roll — matters"): yes, decisively.Mechanism
aether-proxy-confighas a stable name (aether.proxy.configMapName→printf "%s-config",charts/aether/templates/_helpers.tpl:128) and the proxy pod template carries no configmap checksum annotation (charts/aether/templates/agent-proxy-daemonset.yaml—template.metadatahaslabelsonly). So Helm mutates the existing ConfigMap object in place. ItsmanagedFieldstimestamp for this deploy is2026-09-20T17:38:50Z.Every already-running proxy pod mounts that same object. The kubelet's volume re-sync rewrites
/etc/envoy/envoy.yamlunderneath the live pod, fsnotify fires inSupervisor.watchConfig(agent/internal/proxy/hotrestart/supervisor.go:774, watching the directory so it survives the..datasymlink swap), the 500 ms debounce coalesces, andhandleDebouncerunsenvoy --mode validatethen logs"performing hot restart"(supervisor.go:596) and forks epoch N+1 inside the same pod. Then, separately, the DaemonSet's rolling replacement arrives and does the ordinary cross-pod handoff to epoch N+2.Evidence (rev230)
The four in-place restarts are in the logs of four pods that no longer exist — recovered from VictoriaLogs, not from the live pods. All five current pods' supervisors logged exactly one
"starting envoy"and zero"performing hot restart": the incoming pods never hot-restarted in place.performing hot restartlive predecessor confirmed)aether-proxy-57v2haether-proxy-jz825(+28 s)aether-proxy-z92mkaether-proxy-d9jr9(+80 s)aether-proxy-sj8kpaether-proxy-2gckv(+54 s)aether-proxy-89ww7aether-proxy-2vx4j(+106 s)aether-proxy-pmsw9aether-proxy-6trv6(+1 s)Every in-place restart timestamp precedes its node's replacement pod, and each incoming supervisor's
predecessorEpochequals the post-in-place value. The two are independent events.w02 explained — a genuine +1, not a sampling miss
Resolution-independent proof, so the 10-minute step is irrelevant: w02's incoming supervisor logged
predecessorEpoch: 4, startEpoch: 5, heartbeatAge: 884msat 17:38:59.014Z.4is exactly the pre-deploy value. The epoch is a monotone integer read from the shared heartbeat file — an extra restart cannot hide between two equal integers.Corroborating: the outgoing pod
aether-proxy-pmsw9's complete INFO log for 17:36–17:42Z is a textbook clean cross-pod handoff with no in-place restart —holding readiness: serving as hot-restart parent mid-handoff(17:39:00.133, epoch 4) →termination requested mid-handoff; waiting for successor to terminate our envoy(17:39:18.909,successorWaitBudget: 155s) →envoy epoch terminated by successor/reaped envoy epoch 4/successor took over during shutdown wait(17:39:31.993).Cause: w02 was the first node in the rolling update and won the race. Helm wrote the ConfigMap at 17:38:50Z; w02's replacement was created at 17:38:51Z (+1 s) and forked epoch 5 at 17:38:59Z — before w02's kubelet re-synced the ConfigMap volume into the outgoing pod. On the other four nodes the replacement arrived +28/+54/+80/+106 s, leaving the outgoing pod alive and Ready long enough for its own kubelet re-sync to fire.
Note the kubelet re-sync is staggered per node (+2.7 / +26.8 / +36.8 / +47.2 s), not simultaneous. That is worth recording because
handleDebounce's comment asserts "every supervisor sees a ConfigMap change at the same time (fsnotify)" — the fsnotify reaction is instant, but the kubelet propagation that triggers it is spread over ~45 s here. It still lands on all nodes inside ~1 minute, so the fleet-wide-simultaneity concern behind theenvoy --mode validatepre-check stands; the premise is just imprecise.A weaker signal, offered as corroboration only: w02 is the only node carrying an
aether_supervisor_restart_triggers_total{aether_supervisor_trigger="deferred_not_live"}series in that window, which is the statehandleDebounceenters when the current epoch is no longer admin-LIVE — exactly an outgoing pod whose successor has taken the admin port. I would not lean on it: that metric has only anodelabel (no pod), so outgoing and incoming deltas sum into one series and cannot be attributed.This also reproduced on rev225 — the very deploy in this issue
envoy_server_hot_restart_epoch{node="main-worker-01"}, 2026-09-19, 15 s step, raw counter:w01's replacement pod started 20:34:47Z (per the issue body). So epoch 23 existed before the incoming pod did — an in-place restart in the outgoing pod, ~17–32 s ahead of the cross-pod handoff to 24. The original observation was made against a node that had two handoff windows, and the investigation plan above ("the supervisor's handoff log … whether the outgoing epoch stopped listening before the incoming one was accepting") would have missed the first one entirely, because it is not a pod handoff at all.
Reproduction recipe (not executed)
Because the pod template has no checksum annotation and the ConfigMap name is stable, a change touching only the rendered
envoy.yamldoes not roll the DaemonSet at all — it produces exactly one in-place hot restart per node and zero pod replacements. That cleanly isolates the in-place window from the cross-pod window.bpalermo/k8s-talos-main(a livehelm upgradegets reverted by Flux) — e.g. add or remove astats_tagsentry, which is exactly the kind of change rev225 carried.RESTARTS 0);envoy_server_hot_restart_epoch{node=...}+1 on all five nodes; one"performing hot restart"INFO per node.connection_errorper node at 5 s resolution across the window, as raw counters (node-proxyenvoy_*series carry only anodelabel, soincrease()aliases across pods — though on this path there is no second pod, which is itself part of why it is the cleaner experiment).kubectl rollout restart ds/aether-proxy→ +1 epoch per node, cross-pod path only, ConfigMap untouched.Blast radius, state it up front: this path bypasses the DaemonSet rolling update entirely. All five nodes restart Envoy within ~1 minute of each other with no rolling gate, no surge pod, and no readiness gating — precisely the shape of the rev-64 incident (2026-06-11, 13-minute cluster outage) that the node-local
envoy --mode validatepre-check was added to guard. Run it under the prober watching the whole fleet, not as a casual poke.Does this close the #823 timing arithmetic? No.
The two windows per node are 24.5 s / 33.0 s / 60.2 s / 64.7 s apart on rev230, and ~15–30 s apart on rev225/w01. They never overlap, so the ~1.4 s burst cannot be a superposition of the two — each burst attributes to exactly one window. The 1.4 s-vs-~25 s gap against the unconditional
--parent-shutdown-time-s 15hypothesis is unchanged.What it does change is which window to suspect, and it reframes the 0/55:
successorReadyGate(initStartEpochapplies that only to a cross-pod successor), no endpoint change — the pod stays Ready throughout. So--parent-shutdown-time-s 15and the ready-marker gating, the whole basis of the ~25 s prediction, do not apply to it. A ~1.4 s gap is a far better fit for a pure in-Envoy listener handover than for a 15 s parent-shutdown timer.kubectl rollout restartnever rewritesaether-proxy-config, so all 55 rollout-restarts exercised only the cross-pod window. If the burst originates in the in-place window, 55 rollout-restarts could never have reproduced it — the measurement was structurally blind to it, not evidence of a low rate.So: the deploy-only reproduction is now explained, and the prime suspect should shift from the cross-pod handoff to the in-place epoch bump. The arithmetic gap stays open and still needs closing.
Evidence discipline / caveats
arm()'s"hot restart armed"(withreason) andhandleDebounce's"current epoch not yet live; deferring hot restart"are DEBUG; the containers run at INFO, so their absence proves nothing. Every positive claim above rests on INFO lines:"performing hot restart"(emitted immediately before everyhotRestart()),"starting envoy", and"live predecessor confirmed; starting cross-pod hot restart".aether_supervisor_restart_triggers_totalis delta-temporality push with only anodelabel: never-incremented series are absent entirely, and old/new pod deltas sum. Used as corroboration only, never for attribution.increase().kubectl exec.bpalermo commentedon Sep 23, 2026
Two 8h soaks have now passed without reproducing this — but neither one could have seen it
rev231 (2026-09-20) and rev234 (2026-09-22), six proxy rolls each, twelve in total. Prober
connection_erroron the liveness tier: 0 in both runs.That is not evidence this is fixed. #846 established that the prober is structurally blind to this class: it rides a single keep-alive connection, while k6's 60 VUs each eat a refused dial. The rev234 run demonstrated that blindness concretely — a 33-request upstream-timeout burst appeared in k6 and in the access logs and was completely absent from 2,159,996 prober probes.
So "0 in 12 proxy rolls" means 0 visible to the wrong instrument, exactly as this issue's history already warned.
What the right instrument saw instead
rev234's full k6 residual is now attributed, per-node, against the source proxies' access logs (details in #846). All 33 failures were:
response_code: 504,response_flags: UT— upstream timeoutsvc-3None of them are this issue's signature. #823 is ~1.4s of
connection_errorduring the proxy pod handoff — a refused dial. What rev234 produced was an upstream timeout against a service being rolled at the same moment. Different flag, different cause.Status
Not reproduced, and not cleared either. The honest position is that this has not been measured with an instrument capable of seeing it since #846 identified the problem.
To actually settle it, the next run needs per-node k6 failures broken down by class and time — which is what #887 is adding — and those correlated against
ROLLED aether-system/daemonset/aether-proxytimestamps specifically, rather than against the run as a whole. The reconciliation method is now established and cheap to repeat (#846 comment has the LogsQL query path).🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
fix(soak): classify k6 failures by HTTP status, and attribute the res…
bpalermo commentedon Sep 27, 2026
Closing as not reproduced. The one observation (rev225 deploy, 2026-09-19: 36
connection_errorin a ~1.4 s window on main-worker-01 during the proxy handoff) predates #829/#834 (upstream TLS session resumption re-serving a stale SVID, fixed 2026-09-20). Since then, on every build up to rev242/0.95.3: six proxy rolls in the 2026-09-26 8h soak (prober 0 non-success on 2,159,992 requests), the three measured #967 validation rolls and two deploy rolls on 2026-09-26/27, and the running 2026-09-27 soak's rolls so far — zero proberconnection_erroron any node. If it recurs it gets a fresh issue with the roll timeline attached.