Skip to content

QUIC: build twins on observed demand only — 116 of 118 twins never carried traffic; ~223 KiB + ~52 series each; ~650 twins under unconditional QUIC #1020

Closed

Description

@bpalermo

Finding (from the #1006 attribution)

On rev242, 118 quic: twins existed fleet-wide (2 destinations × 59 local ServiceAccounts) and only 2 ever carried traffic. Idle twins cost ~0 CPU, but each one costs about 223 KiB of fixed Envoy heap and ~52 stat series (6,162 @ series today), and every one is a CDS resource that has to be pushed, warmed and kept in sync. Projected for unconditional QUIC (59 SAs × ~11 HTTP destinations): ~650 twins, ~1,150 active clusters, ~34k stat series, ~140 MiB fixed heap per fleet.

The twins are also the surface of #1008 (a twin added after its base warms 15 s): fewer twins, fewer late additions.

Ask

Build a quic: twin only for identities that have actually dialled the destination (the observed-demand set the node agent already persists, ObservedUpstreams, proposal 004's demand scoping), with the base h2 cluster serving the first request of a new (source, destination) pair until the twin is active. Today's fleet would go from 118 twins to ~10. Gate: twin count = |{(sa, dst) with traffic}| on the next soak, envoy_cluster_manager_active_clusters flat across the run, and the #1014 new-SA step still 0 NC.

Related: #1006, #1008, #979.

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