Skip to content

fix(038): per-source alt_stat_name on the quic: twins (#960) - #962

Merged
bpalermo merged 1 commit into
feat/quic-pr8-e2efrom
feat/quic-per-source-alt-stat-name
Sep 26, 2026
Merged

bpalermo merged 1 commit into
feat/quic-pr8-e2efrom
feat/quic-per-source-alt-stat-name

Conversation

@bpalermo

@bpalermo bpalermo commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #959 (stack #963). Closes #960.

QUICClusterFrom is a proto clone of the h2 service cluster, so every per-source quic: twin kept the h2 cluster's alt_stat_name and all of them reported into one cluster.<ns>/<svc>.* tree: Prometheus could not tell HTTP/3 from HTTP/2, or one source's twin from another's, and a wrong-arm selection (#831's shape) was invisible in stats.

What

  • proxy.QUICAltStatName(h2Key, "<ns>/<sa>") = <ns>/<svc>@<ns>/<sa> — the h2 stats key with the same @<source> suffix the cluster name carries. No dots, so the cluster_name tag extraction still captures the whole key; the h2 series keep their exact name; a dashboard that wants both matches aether_cluster=~"<ns>/<svc>(@.*)?". An empty h2 key or source key yields "" (Envoy keys by the twin's own, unique, name) — never the shared key.
  • test/envoy_validate: QUICUpstreamsSharingStatsKey + TestQUICUpstreamsHaveTheirOwnStatsKey over the generated fixture (whose twins are h2 clones — exactly the shape that shared the key).
  • The eastwest-quic e2e header no longer describes the shared tree; its evidence (admin /clusters host rows) does not depend on the stats-key shape either way.

Gates, each seen red with the assignment removed

TestQUICClusterFrom ("a twin must NOT share the h2 cluster's stat tree"), TestQUICFanoutPublishesPerSourceTwins (per-twin key), TestQUICUpstreamsHaveTheirOwnStatsKey.

Not changed: PR 9's talos soak still grades HTTP/3 from the admin endpoint until this is deployed; after it, envoy_cluster_upstream_rq_total{aether_cluster=~".*@.*"} is the per-source HTTP/3 series.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

QUICClusterFrom is a proto clone of the h2 service cluster, so every
per-source twin kept the h2 cluster's alt_stat_name and all of them reported
into ONE cluster.<ns>/<svc>.* tree: Prometheus could not tell HTTP/3 from
HTTP/2, or one source's twin from another's, and a wrong-arm selection
(#831's shape) was invisible in stats.

Each twin now carries QUICAltStatName(h2 key, "<ns>/<sa>") = "<ns>/<svc>@<ns>/<sa>"
-- the h2 key with the same "@<source>" suffix the cluster name carries. No
dots, so the cluster_name tag extraction still captures the whole key; the h2
series keep their exact name, and a dashboard that wants both matches
`aether_cluster=~"<ns>/<svc>(@.*)?"`.

Gates seen red with the assignment removed: TestQUICClusterFrom,
TestQUICFanoutPublishesPerSourceTwins, and envoy_validate's new
TestQUICUpstreamsHaveTheirOwnStatsKey (QUICUpstreamsSharingStatsKey). The
eastwest-quic e2e header no longer describes the shared tree.

Closes #960.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo force-pushed the feat/quic-per-source-alt-stat-name branch from 85cf8f1 to 829e1fe Compare September 26, 2026 21:51
@bpalermo
bpalermo merged commit 690dbb5 into main Sep 26, 2026
47 checks passed
@bpalermo
bpalermo deleted the feat/quic-per-source-alt-stat-name branch September 26, 2026 22:07
bpalermo added a commit that referenced this pull request Sep 27, 2026
… never publish (#975) (#978)

publish runs once per push to main, for the push's head. gh-stack #963
landed #959/#962/#964/#965/#966 as five squash commits in ONE push
headed by 4930733: publish ran for 4930733 and published it fully, and
d74d77a, 690dbb5, 937a8fd and ef44437 were never the tree of any publish
run. The --recent sweep checked every commit on main and filed #975 for
all four.

The sweep now checks the push heads in its window and prints every other
commit as `skip <sha> (not a push head ...)`. Heads come from GitHub's
activity log for refs/heads/main (scripts/push-heads-lib.sh), not from
the list of publish runs: the log records the push itself, so a push
whose publish run was cancelled (#880) or never created is still a head
and still goes red. The quiet-window fallback now picks the newest push
head older than the grace period, and an empty/unreadable/abbreviated
head list is inconclusive (exit 2), never "nothing to check". Explicit
commits (make check-published COMMIT=..., workflow_run) are unchanged.

scripts/check-push-head-selection.sh pins the selection in CI (no
network), including the fail-closed inputs.

Closes #975


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

038: quic: twins clone the h2 cluster's alt_stat_name — per-source / h3-vs-h2 upstream stats are indistinguishable

1 participant