You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node: concurrent pull legs to one upstream share one 8 MiB receive window and the 100-stream cap #2542
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
A larger receive window on dialled connections (the window is set on the endpoint's transport config, shared with inbound).
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.
Activity