Repository navigation
Description
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:
NodeRangedStore/admit_bao_stream(node backend, refactor(cache): unify blob ingest behind a range-aware cache API with retained partials #1607).BackendSource(own-origin) +PeerSource(paid peer), both writing through
admit(theBlobSourceunification from feat(node): unify miss sources behind BlobSource; remove max_blob_size_mb #1608, now merged).
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.
- Delete the config knob and both
BlobTooLargegates (serve + buyer). - Admission ceiling becomes
cache_size_mb(the disk budget already in config). - Warm-concurrency reserves the blob's actual size — a provider signs
total_bytesup front, so admission is a precise pre-check, not a worst-case cap. - Capacity eviction reuses the refactor(cache): unify blob ingest behind a range-aware cache API with retained partials #1607 logical + lease-protected eviction path.
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
- No source-seam or wire changes —
BlobSourceunification already merged. - No new large-file manifest format (application-layer manifests, ADR 002).
- Multi-source parallel scheduling stays ADR 039: rewrite leaner as the single multi-source home, then implement the scheduler #1164 / ADR 039.
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
refactor: drop the cache instrumentation from #1678 — out of scope
alpergundogdu commentedon Aug 14, 2026
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 tocache_size_mb. Same disk-is-the-ceiling default, far smaller surface. The full-removal PR #1683 is closed.feat(config): default max_blob_size_mb to cache_size_mb, keep the knob (