Repository navigation
Description
Found live during the 2026-08-09 soak (rev 187 / 0.91.0). Every UDS-client ledger burst tonight — and retroactively the "unexplained" pre-soak burst at 17:56Z — is one mechanism, fully evidenced end to end.
The failure
The uds-client (worker-01, ~1 rps alternating between two backends) periodically gets multi-minute windows of 503 NC cluster_not_found from its own node proxy — reporter=source, upstream_cluster="-", each request ~2001–2041ms (on-demand timeout shape). Worst observed window tonight: 5.5 minutes (04:04:35Z → 04:10:05Z).
Causal chain (each link evidenced)
- Trigger (chart bug, fixed separately):
charts/udsechowroteconfig.aether.io/upstreams: "uds-echo.aether-test"— dot form.UpstreamsFromPodnamespace-qualifies any slash-less value, yielding the nonsense keyaether-test/uds-echo.aether-test. The declared-upstream protection silently never existed. - Core defect A — warm traffic does not renew observed membership. With no (valid) declaration, both services rode ODCDS-observed dep-set membership (TTL 1h).
ObserveDependencyrefreshes the timestamp only on ODCDS re-requests; traffic flowing through the delivered cluster never renews it. An undeclared steady-rate consumer is therefore guaranteed a mid-traffic drop every TTL cycle. Agent log at burst start (04:04:32.77Z):"service left dependency set; dropping cluster/vhost (cold path takes over)"for both services, then"expired observed upstreams from node dependency set","count":2. - Roll correlation is coincidental:
PruneObservedDependenciespiggybacks on refresher activity, so an already-due expiry fires seconds after whatever unrelated roll comes next (tonight: svc-1 at 04:04:31Z, 4s before the burst). The roll is the occasion, not the cause. - Core defect B — ODCDS recovery is wildly variable under snapshot churn. The 02:36Z drop recovered in ~4s (2 failed requests). The 04:04Z drop — during active roll-driven snapshot churn (pushes every ~300ms) — produced continuous 2s NC failures for 5.5 minutes before the agent logged the on-demand re-add (
"observed undeclared upstream (ODCDS miss); adding", both services, 04:10:03Z), after which the very next requests succeeded. Something between Envoy's on-demand machinery and the agent's ODCDS path stalls or negative-caches while snapshots are churning; "cold path takes over" is not a bounded-latency promise today.
Why this is not UDS-specific
Nothing in the chain touches pipe delivery. Any undeclared (or mis-declared) upstream with steady traffic hits the same drop-every-TTL + variable-recovery behavior. The UDS client was simply the only workload in that state — high-rate consumers (k6, prober) mask recovery inside their retry/rate profile, and their targets are correctly declared.
Suggested directions
- A: renew observed-dep membership on data-plane use (e.g. fold active-cluster traffic or EDS/cluster reference-counting into the prune decision), or never prune a cluster with live upstream connections — expiry should mean idle, not undeclared-but-busy.
- B: bound ODCDS re-add latency under snapshot churn — reproduce with a churning snapshot + on-demand request storm; instrument where the 5.5 minutes went (Envoy negative caching? coalesced-request loss? agent-side).
- Hardening:
UpstreamsFromPod(or the pod-mutating/validation path) should flag a declared upstream that matches no known service — the dot-form typo was silent; an in-vivoWARNwould have surfaced it on day one. - Consider whether the observed TTL (1h) vs prune cadence interaction deserves jitter so expiries don't cluster behind refresher-triggering events.
Immediate mitigations (separate PRs)
- udsecho chart: correct the annotation to bare/slash form (
uds-echo,uds-cr-echo). - The soak grade should segregate these ledger FAILs from roll-drain attribution — they are this bug, not rollout drain behavior (and not TRIPLE-window liveness anomaly: 2-for-2 across consecutive soaks, different mechanism each time #629's TRIPLE signal).
🤖 Filed mid-soak from live evidence; full trail in the 2026-08-09 soak record.
Activity
fix(udsecho): declare the client's upstreams in the format the parser…
bpalermo commentedon Aug 9, 2026
Discriminator complete (06:25Z read) — recovery time is governed by whether a roll is actively rebuilding the snapshot at drop time:
Fast (1–4s) in quiet windows; slow and wildly variable (40s–5m30s) under active snapshot churn. Defect B is therefore specifically an ODCDS-re-add-starved-by-concurrent-snapshot-rebuilds problem, not a general slow path.
Two new facts for the record:
(From the 2026-08-09 soak's 06:25Z checkpoint; full trail in the soak record.)
bpalermo commentedon Sep 5, 2026
Closing — this is exactly the mechanism fixed and validated under #682:
aether_agent_upstreams_ttl_refreshed_totalfrom fix(xds): alias the ODCDS authority on the mesh port, and re-seed the demand set on a fresh xDS stream (#682) #698), and feat(agent): persist the observed demand set so a replaced agent starts warm (#701) #702 persists the observed set to local storage so a replaced agent starts warm.:authority, the default-port alias was never published, and go-control-plane's delta wildcard path never tells Envoy the name doesn't exist, so Envoy parks it until the stream resets — and publishes the alias; fix(xds): alias the ODCDS authority on the mesh port, and re-seed the demand set on a fresh xDS stream (#682) #698 adds the mesh-port (:18081) alias and re-seeds the demand set from the proxy'sinitial_resource_versionson a fresh stream.Validated on talos-main (rev195/rev196, 2026-09-05): two deliberate demand-set shrinks → 0 stalls / 0 prober errors on the no-local-replica nodes (was +133/+134); agent-only restarts → 0; full agent+proxy replacement → 0 (was 127/147). Remaining open item is the harness-side one: the 09-05 soak variant (#687) now has a 90-minute no-roll window so this class is no longer methodologically invisible; the first run of that variant will show the restored entries expiring on their original schedule.