Skip to content

feat(node): remove max_blob_size_mb — make blob admission a disk decision #1678

Closed as not planned

Description

@alpergundogdu

Problem

max_blob_size_mb still caps the largest blob a node will warm or serve, even
when disk could hold it many times over. It is a hard reject on both sides:

  • Serving side — handlers/client/dispatch.rs:735: total_bytes > max_blob_size_bytes → BlobTooLarge.
  • Buyer side — the mirrored ceiling in the node's pull config.

The knob's original job was to bound RAM: the old warm/buyer leg buffered the
whole blob. That rationale is gone. Every miss source now streams to disk through
the shared range-aware admit path at O(chunk-group) memory:

With memory off the table, the cap only stops a node from holding a blob its disk
could easily fit — the exact bug the parent issue (#1608) named.

Intent

Remove max_blob_size_mb entirely and make blob admission a disk decision.

Docs

Update the config docs for max_blob_size_mb (removal) and the ADR 003 deposit
section. Note: after the shared-payment-pool rewrite (PR #1667), the section
to touch is the refundable-floor M serving policy, not the retired
two-tier / credit-window language.

Out of scope

History

Split out of #1608 (closed). #1608's BlobSource unification (BackendSource +
PeerSource through one admit) is done; this is the one remaining slice —
dropping the memory-era cap now that ingest is disk-streaming.

Activity

  1. added this to the v0.1 milestone on Aug 13, 2026
  2. self-assigned this
    on Aug 13, 2026
  3. added a commit that references this issue on Aug 14, 2026
  4. alpergundogdu commented on Aug 14, 2026

    @alpergundogdu
    ContributorAuthor

    Superseded by #1685 (implemented in #1686). We are keeping max_blob_size_mb — node-configurable, every serve/buyer gate intact — and only changing its default to cache_size_mb. Same disk-is-the-ceiling default, far smaller surface. The full-removal PR #1683 is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions