Skip to content

Distribute serve load + revenue across partial holders (range-keyed discovery over obao4) #1506

Description

@alpergundogdu

The problem is supply concentration, not discovery for its own sake. A wide client fan-out (#1164, ADR 039) parallelizes the client's last hop but not its supply: every leg's upstream still converges on the couple of nodes that hold the whole blob. Fan-out width ≠ supply width. Nodes already cache and serve verified byte ranges — partial blobs via import_bao_bytes / export_ranges (ADR 037/038) — and proxy warming (#1174) manufactures partial holders as a side effect of normal fetches. But a partial holder only advertises on BlobStatus::Complete (crates/cache/src/engine.rs:300, :1055), so that accumulated supply is dark: undiscoverable, unpaid, and unable to relieve the full holders.

Goal: make the partial-holder population the serving supply. With partials discoverable, disjoint ranges source from many holders instead of funneling through the full-holder set — so both serve load and serve revenue distribute across the population. Distributed revenue is the point, not a side effect: it turns cache-and-hold-a-range into a paying tier, which strengthens the incentive to retain partials, which feeds more supply. That loop — not the one-time load relief — is the payoff.

Mechanism — split discovery by volatility:

  • (a) Relax the advertise gate: provide H on any verified partial, not only Complete.
  • (b) Extend the probe from a has_blob bool to a coarse coverage bitmap at a discovery-block granularity (e.g. 64 MiB), decoupled from the 16 KiB verification granularity. iroh-blobs already tracks the partial bitfield, so the answer is derivable and always fresh (pull, not stale push). Granularity is a real knob: coarse enough to stay cheap on the probe, fine enough to expose genuine disjointness — too coarse and "partial holder" collapses toward "has-something", losing the disjoint assignment that makes the spread real.
  • (c) Client range scheduler: assign disjoint ranges to candidates, verify each via bao-range, stitch; fall back to origin only for genuine gaps. This is the ADR 039: rewrite leaner as the single multi-source home, then implement the scheduler #1164 scheduler consuming the wider candidate set — not new machinery of its own.

Free (already built): range verification (obao4), per-byte voucher payment, partial cache+serve. New work is the advertise-gate relax + probe coverage + scheduler admission. Single hash throughout — no new manifest, no derived blobs, no channel change. Node pulls stay single-leg and demand-driven; the partitioning intelligence is client-side, so nothing here parallel-pulls at the node.

Payoff is supply-gated, so this is post-v0.1. The distribution win only materializes once hot blobs have accumulated a diverse partial-holder population (holders covering different ranges) and full-holder upstream is the measured bottleneck — not the client's last hop. Concrete trigger to pull it in: measured upstream concentration on full holders under load, not "multi-source shipped." Full-holder multi-source (#1164) needs none of this and ships without it.

Related: #1164 (ADR 039 multi-source scheduler) is what consumes the wider supply. Builds on ADR 038 (obao4) and ADR 037 (partial range pull).

Supersession context: filed alongside the DECDNMAN retirement (#1505) — this is the "do it properly over obao4" path referenced there.

Activity

  1. added
    design:adr
    kind:feature
    on Jul 29, 2026
  2. added
    status:blocked
    on Jul 29, 2026
  3. alpergundogdu commented on Aug 3, 2026

    @alpergundogdu
    ContributorAuthor

    This is only an improvement after the scheduler is implemented, so it's blocked on multi-source pull scheduler

    #1164

    PS: Noticed this can still be an improvement even without the parallel pull scheduler, as-in, if a node is holding half the data, then it would only need to fetch the second half from the origin, and deliver the first half node-to-node. Although this still needs some work and investigation, so keeping it blocked.

  4. changed the title [-]Proposal: range-keyed discovery over obao4 (make partial holders discoverable)[/-] [+]Proposal: distribute serve load + revenue across partial holders (range-keyed discovery over obao4)[/+] on Aug 20, 2026
  5. moved this from Backlog to Ready in deCDNon Aug 20, 2026
  6. removed
    status:blocked
    on Aug 20, 2026
  7. 12 remaining items

  8. moved this from In progress to Done in deCDNon Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adrkind:feature

Fields

Priority

Medium

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions