Skip to content

node: an upstream pull run reopens the upstream for each draw (~2.2 opens per run on testnet) #2334

Open

Description

@alpergundogdu

Observation

On testnet traces (2026-10-05 12:00 to 2026-10-06 10:00 UTC), node-to-node miss fills made 1,199 upstream_stream runs and 2,692 open_progressive_pull spans under them: about 2.2 upstream opens per run.

Each draw that the RampPacer allows opens a new upstream request (the minimum-draw rule from #2061: WaitForMinDraw batches window room into draws of at least half the window, and each draw is a fresh open). Over 3 days, decdn_node_pull_through_min_draw_waits_total was about 164k against 2,819 pull attempts.

An open costs a round trip plus the upstream's admission (signed response, fill claim). Open latency by node is p50 66-340 ms, p95 up to about 1.07 s (Tempo, open_progressive_pull).

Effect

This does not touch time to first byte. The first draw serves the first frame. It costs throughput on large pulls: every later draw stalls the run for one open, and the upstream does one admission per draw.

To decide

  • Can a run keep one upstream stream open across draws and extend its range, instead of opening a new request per draw?
  • If not, can the next draw's open start before the current draw drains, so the open overlaps transfer?

Check both against the reasons for #2061 (per-draw payment and voucher pacing) before changing the draw shape.

How to measure

  • Tempo: { name = "upstream_stream" } > { name = "open_progressive_pull" } | count_over_time() against { name = "upstream_stream" } | count_over_time().
  • Prometheus: decdn_node_pull_through_min_draw_waits_total against decdn_node_pull_attempts_total.

Activity

  1. added
    kind:feature
    prio:low
    area:node
    on Oct 6, 2026
  2. assigned and unassigned on Oct 7, 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:nodekind:featureprio:low

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions