Skip to content

QUIC: an HTTP/3 mesh request costs 3.3× the proxy CPU of h2 (0.8 rps per connection, 64 connections per destination); gate the flag drop on ≤1.5× #1021

Closed

Description

@bpalermo

Finding (from the #1006 attribution)

Under matched load (rev239 h2 vs rev242 with 100 of 350 mesh rps on QUIC), 97 % of the +0.78 proxy cores is the HTTP/3 request path: an h2 mesh request costs ~3.3 ms of proxy CPU across both proxies, an h3 request ~11 ms, 3.3×. It is not handshake churn (no new connections in the window). The shape that makes each request expensive: tiny requests (92 B in / 903 B out) spread over 128 QUIC connections carrying 100 rps (~0.8 rps per connection), so every request pays its own ACK processing, alarms and extra UDP packets in userspace; kernel udp_sendmsg alone is +0.108 cores, and QUIC writes now happen inline from the downstream side where h2 deferred them. Memory: ~340 KiB per live QUIC connection end (+87 MiB fleet).

Projection for unconditional QUIC: ~+2.7 cores (fleet ~4.8 vs ~2.09 with h2 everywhere, 2.3×) and ~+300 MiB heap for live connections.

Ask (each a measurable step; #979 gates on the result)

  1. Explain the fan-out: why ~64 QUIC connections per destination for 50 rps from 5 source pods. connection_pool_per_downstream_connection on the twin (inherited from the h2 base, needed there for per-source cert isolation) pins one upstream QUIC connection per k6 downstream connection; on a per-SA twin the identity is already fixed by the cluster, so that setting may be unnecessary on twins. Measure connections and CPU with it off.
  2. UDP GSO/GRO on the QUIC transport (nothing is configured under agent/internal/xds), and review QUIC ACK frequency / max_ack_delay settings for many-small-requests traffic.
  3. Gate for dropping the allow-list: QUIC per-request proxy CPU ≤ 1.5× h2 at the soak's load shape, measured the way the soak: QUIC twins cost the proxy fleet +33% CPU and ~+20% RSS under identical load (rev242 vs rev239); attribute before dropping the allow-list #1006 comment does (matched 80-min no-roll windows, fleet cores / rps).
  4. Keep 2.88 fleet cores as the QUIC baseline for the next soak.

Related: #1006, #979, 038.

Activity

  1. added
    enhancement
    on Sep 27, 2026
  2. bpalermo commented on Sep 28, 2026

    @bpalermo
    OwnerAuthor

    Same-revision measurement, 2026-09-28, rev247 (1.0.3-799acda, GRO on the inbound QUIC listener, pool guard)

    Two matched 80-min no-roll windows on the same build, same k6 arrival rate (5 loaders × 60 rps = 300 rps, constant-arrival-rate), only the target set changed:

    phase targets window k6 fleet aether-proxy CPU (Pyroscope process_cpu, 5-min steps)
    idle none (prober + dialers only) 12:10–12:50Z – 0.849 cores
    A svc-3, svc-4, echo, mixed-svc (h2) 13:00–14:10Z 1,440,002 reqs, 0 failed 3.527 cores
    B svc-1, svc-2 (QUIC twins) 14:25–15:35Z 1,439,930 reqs, 0 failed 4.009 cores

    Load placement verified: phase B ran 150 rps on each of aether-test/svc-1@aether-test/default and svc-2@… (the per-SA twins), 0 on the bare h2 clusters; phase A ran ~75 rps on each of the four h2 clusters.

    Per-request proxy CPU above idle (both proxies): A = 2.678 cores / 300 rps = 8.9 ms; B = 3.160 cores / 300 rps = 10.5 ms. h3 / h2 = 1.18× — under the ≤1.5× gate.

    Caveats:

    Next: phase C (five aether-proxy rolls under QUIC load on the #1048 build) for #1009's DC accounting, then the #979 decision.

  3. bpalermo commented on Sep 28, 2026

    @bpalermo
    OwnerAuthor

    Phase C (5 proxy rolls under the same 300 rps QUIC load, rev248) does not change the cost result above. The run surfaced two client-visible failures that are not cost: #1049 (first-use twin publish >5 s after an agent restart → 428 × 503 NC) and #1050 (a hot-restart successor wedge on one node → watchdog kill, ~55 s node-local outage, 56 prober failures). Both gate #979, the 1.18× ratio does not.

  4. bpalermo commented on Sep 30, 2026

    @bpalermo
    OwnerAuthor

    Closing with the verdict.

    Remaining QUIC follow-ups have their own issues: #1086 (first-use 503 burst), #1087 (504 UT to a terminating endpoint while the source agent is down).

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions