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
feat(config): default max_blob_size_mb to cache_size_mb, keep the knob #1685
cache.max_blob_size_mb defaults to a fixed 1 GiB (DEFAULT_MAX_BLOB_SIZE_MB),
a memory-era number from when the warm/buyer leg buffered a whole blob in RAM.
On defaults it refuses a blob a node's disk could hold many times over — a 2 GB
blob rejected on a node with 2 TB of disk.
Removing the knob entirely (#1678, PR #1683) fixes that but pulls in a chain of
follow-ups: serve/buyer BlobTooLarge gate rework, a 0-sentinel dance, and a
forced RAM re-plumb of the last buffered ingest path (#1682). That is a lot of
surface for what is really a bad default.
Intent
Keep max_blob_size_mb — node-configurable exactly as today — and only change
its default:
Unset ⇒ cache_size_mb (the disk budget). A node admits any blob it can
store; the disk is the ceiling.
Relax the load-time invariant from max_blob_size_mb < cache_size_mb to <=, so the new default (equality) is legal. A value above cache_size_mb is still rejected (a blob larger than the whole cache can
never be admitted). 0 still means unlimited.
Operators who want a tighter per-blob bound — e.g. to cap the RAM the
buffered miss tier spends on one pull — still set it explicitly below cache_size_mb.
Every serve/buyer gate, the wire meaning of BlobTooLarge, and the CLI/env
knob stay exactly as they are. This supersedes #1678's full-removal approach.
Known interaction — the buffered miss tier
node_origin::resume::pull_blob still buffers the whole blob into LoopState.buf: Vec<u8>, bounded by max_blob_size_bytes. Raising the default
ceiling to cache_size_mb therefore raises that tier's worst-case RAM to the
disk budget until the buffer is ported to streaming. That port is #1682,
which stays open and is the real fix; this issue is the config default only.
Activity
feat(config): default max_blob_size_mb to cache_size_mb, keep the knob (