Skip to content

node: concurrent pull legs to one upstream share one 8 MiB receive window and the 100-stream cap #2542

Open

Description

@thiras

Context

Since #2475 every pull leg a node opens to one upstream rides the one pooled cdn/client/v1 connection to that upstream (NodeOriginDeps::connections). Before, each leg dialled its own connection.

Problem

All concurrent legs to one upstream now share one connection's receive window and stream limit:

  • QUIC_CONNECTION_RECEIVE_WINDOW is 8 MiB (crates/node/src/runtime/mod.rs), whose own comment sizes it as "about 80 MB/s per connection at a 100 ms round trip". That is now the aggregate bound for every concurrent miss from one node to one upstream (every node pulling from the single origin-backed node on the testnet, or a bundle get with many entries). At 150 ms RTT that is about 53 MB/s in total, whatever the number of legs.
  • QUIC_MAX_CONCURRENT_BIDI_STREAMS is 100. Past 100 in-flight legs open_bi waits for stream credit until deadlines.open expires; that leg gets OurDeadline, and is_transport_fault unpins the shared connection for every sibling leg.
  • A PullStalled on one leg, which sibling legs filling the shared window can cause, also unpins the connection for every leg.

The warm_upstream_connection e2e pulls its blobs one after another, so it cannot see this.

Options

  1. A larger receive window on dialled connections (the window is set on the endpoint's transport config, shared with inbound).
  2. A small per-upstream connection count: open a second connection when in-flight streams on the first pass a threshold, so throughput scales with legs while dials stay rare.

Either way, add a concurrent-misses throughput check (several misses in flight to one upstream) so the bound is measured, not inferred.

Spun out of the #2475 review.

Activity

  1. added
    design:missing-decision
    area:node
    on Oct 19, 2026
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

    area:nodedesign:missing-decision

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions