Skip to content

QUIC: a twin cluster added after its base is subscribed never receives EDS (delta WatchMap dedup on the shared EDS name) — 15 s of 503/NC for every new ServiceAccount on a node #1008

Closed

Description

@bpalermo

Finding (rev242 proving QUIC soak, 2026-09-27)

k6 finished with 1,154 failed requests of 9,179,950 (1.26e-4). rev239, same load, had 47 (5.1e-6). The source proxies' access logs (reporter=source, UA k6) reconcile the k6 total exactly:

access-log class count where
503/NC (no cluster) 1,060 (svc-1 521, svc-2 539) only the two QUIC-enabled destinations, only 09:54:32–09:54:43Z, every node (~20 rps/node = k6's rate to svc-1+svc-2)
504/UT 92 svc-3 at the triple roll, same as rev239
503/UC 2 twins, at destination rolls
total 1,154 = k6 http_req_failed

So the whole k6 regression is one 11-second event, and it is not a roll: it is the k6 loader pods starting (09:54:27Z, one per node, ServiceAccount aether-test/default, which was a new identity on every node).

Mechanism, from the w01 proxy log

09:54:29.636 cds: response indicates 5 added/updated cluster(s)        # incl. quic:svc-1…@aether-test/default, quic:svc-2…@aether-test/default
09:54:35–43  cm odcds: on-demand discovery for cluster quic:svc-2…@aether-test/default timed out   (×5 per twin, every ~2 s)
09:54:44.637 gRPC config: initial fetch timed out for type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment
09:54:44.644 gRPC config: initial fetch timed out for type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment
  • envoy_cluster_warming_state{aether_cluster="aether-test/svc-{1,2}@aether-test/default"} = 1 on all five nodes from the CDS add until the 09:54:50Z scrape; envoy_cluster_manager_warming_clusters = 2 on every node for the same window.
  • envoy_cluster_init_fetch_timeout_total{aether_cluster="aether-test/svc-{1,2}@aether-test/default"} = 1 on every node (series born at 09:54:44Z). The same counter is 1 for …@aether-test/anyport-probe on w02, the other new-ServiceAccount event of the day, so the signature reproduces.
  • The agent did nothing wrong in the window: the SVID for sa/default landed at 09:54:30.29Z and the snapshot carrying it was set at 09:54:30.55Z (versions 23–26); the agent then went idle until 09:54:44.7Z. Nothing on the control-plane side was pending for 13 s.

Why the twin never gets its endpoints. QUICClusterFrom clones the base cluster, so the twin keeps the base's EdsClusterConfig.ServiceName (the bare service name) and the base's ads: {} EDS config source. Both clusters therefore subscribe to the same EDS resource name on the same delta ADS mux. Envoy's delta WatchMap deduplicates subscription interest per (type_url, resource name): the base already holds the name, so the twin's watch adds nothing to resource_names_subscribe, no request goes out, and a delta control plane correctly sends nothing (the resource has not changed). The twin sits in warming until its 15 s initial_fetch_timeout expires and only then becomes routable. This is #842's mechanism applied to EDS instead of SDS (see project_842_sds_dedup_outage; the fix there, #865, was a distinct ConfigSource for the second subscriber).

It only bites when the twin is added after the base is already subscribed, which is exactly the new-ServiceAccount-on-node case: at agent start every base and twin arrives in one CDS response and the first watch's request serves both.

Why it blocks #979

Every first pod of a ServiceAccount on a node currently gets 15 s of 503/NC to every QUIC-enabled destination, and the h2 path has no equivalent: the shared service cluster is already active, so a new source only adds a transport-socket match. With the allow-list dropped, "every QUIC-enabled destination" becomes every mesh destination, so every new workload's first 15 s on each node would be a hard outage to the whole mesh. The prober did not see it because the prober's SA was already local when its twins were built and no prober pod started during the run.

Fix options

  1. Per-twin EDS resource name (preferred): give each twin EdsClusterConfig.ServiceName = <twin cluster name> and have the cache publish the base's ClusterLoadAssignment under that name too. This is the same pattern the per-port clusters already use ("a per-port cluster uses its own name so its EDS membership is filtered"), costs no extra stream, and go-control-plane's delta cache serves distinct names independently.
  2. A distinct api_config_source for the twins' EDS (the fix(agent): give the certificate selector its own SDS stream (#842) #865 shape). Works, but adds a mux per twin set and reintroduces the SotW/delta split for endpoints.

Gate for either: a //test/envoy_validate or //test/mtlspool case that adds a twin after its base is active and asserts it becomes routable in well under 15 s (seen red on today's code), plus envoy_cluster_init_fetch_timeout_total on @ clusters = 0 across the next soak, including a mid-run pod start with a new ServiceAccount (the churn set today never introduces one, which is why 8 h of churn showed nothing after the first 11 s).

Grader record: project_soak_20260927_rev242_run. Related: #842, #865, #979 (held), #846.

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