Skip to content

QUIC twins: first use after an agent+proxy restart takes >5 s to publish — Envoy's on-demand fetch times out and 428 requests fail 503 NC cluster_not_found (rev248 phase C, 15:44:51Z) #1049

Closed

Description

@bpalermo

What happened (talos-main rev248 = 1.0.3-763e257, 2026-09-28)

Sequence: rev248 deploy rolled the agent (15:38–15:40Z) and the proxy (≈15:41Z). k6 (5 loaders × 60 rps, SA default) started sending to the QUIC-enabled svc-1/svc-2 at 15:44:44Z. Requests succeeded for ~6 s, then every source node returned 503 NC cluster_not_found (upstream_cluster -) from 15:44:51 to :53 — 428 client-visible failures (k6 status=503), 83–89 per node. Then the twins arrived and everything flowed.

Proxy logs (all nodes): cm odcds: on-demand discovery for cluster quic:svc-1.aether-test.aether.internal@aether-test/default timed out at 15:44:52.2 (w04), 15:44:52.6–52.7 (w01) — the on_demand filter's ODCDS timeout fired. w03 additionally logged cluster quic:svc-2…@aether-test/default not found during on-demand discovery at 15:45:04.7 — an "absent" answer for a name the proxy holds a subscription for, which the ODCDS strand rule says must never happen.

Agent logs: w04/w03 republished dormant east-west QUIC pairs: the proxy still holds their on-demand subscriptions, so the twin is pushed with no request at 15:44:46.0/46.1; w02/w05/w01 observed east-west QUIC pair (ODCDS); building its twin at 15:44:49.99–50.71. So the agent saw the ODCDS request ~3 s after the proxy sent it (the proxy's timeout at 52.2 means the request went out ≈47.2), and the twin still was not in Envoy at 52.x — and on w04, where the pair was republished without a request at 15:44:46, the proxy still timed out at 15:44:52: the published twin took >6 s to reach the proxy.

Why it matters

This is the "#1014 step 0 NC" gate for #979: a fresh ServiceAccount (or a dormant pair returning after an agent restart) must not fail its first requests. Rolls 1–3 of the same run (proxy-only restarts against a warm agent) had 0 NC — the re-subscribe path is fine; the slow path is first-use / dormant-return right after an agent restart.

Ask

  1. Measure where the 5–8 s goes on a fresh agent: ODCDS request receipt → ledger admit → snapshot build → push (the snapshot after a restart carries every pod's listeners/clusters; is the twin serialized behind a full-snapshot rebuild or a debounce?).
  2. Answer ODCDS for a dormant/known pair from the ledger immediately (twin config is deterministic), before the full republish; never let the on_demand timeout beat the answer.
  3. Explain the w03 15:45:04 "not found" and make it impossible (the same invariant as fix(quic): a twin pair is admitted only on real first use — held-only twins are dropped on a fresh stream, live re-subscriptions keep serving, stale persisted pairs are pruned (#1033) #1035/quic: a pruned on-demand twin is stranded if its source ServiceAccount returns to the node — Envoy never re-requests a subscribed ODCDS name (503 NC forever) #1036).
  4. Regression gate: the soak's newsa step (soak: the churn set never starts a pod with a new ServiceAccount, so it is blind to the #1008 class — add a mid-run new-SA pod start and gate init_fetch_timeout on @ clusters #1014) plus an agent roll immediately before it.

Related: #1008, #1013, #1032, #1035, #1036, #1014, #979. Measurement record: session memory project_1021_measurement_20260928 (phase C).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions