carlos / platform Public

storedoor-stream-get

Incident 2026-11-03: the dev console box sophie (1 GB) was OOM-killed when a fleet box pulled a 483 MB rootfs release through the edge's fleet store door. serveObject's GET read the whole object into memory per request (store.Get), and carlos-stage retried every ~15 s. Even on the resized 4 GB box, the edge peaked at 1.35 GB relaying it. Paul chose a streaming fix (plus the resize, done separately).

  • GET streams through release.OpenObjectStreaming with io.Copy. Content-Length comes from S3's ContentLength or a DirStore fstat. A Get-only store falls back under a 64 MiB ceiling. Refusals, 404s, Carlos-Store-Absent, ETag and Content-Type are byte-identical.
  • Concurrency caps for large GETs (unknown size or over 1 MiB): 2 per box, 4 per account, 8 per edge. Over any cap gets 429 with Retry-After: 5. Small GETs bypass. A 60 s write deadline is pushed forward each chunk, so a stalled reader frees its slot.
  • Tests: memory witness (a 64 MiB GET allocates about 38 KB), parity, caps, small bypass, per-account, stalled reader.

Astra built it. Opus reviewed: READY AFTER FIXES, then fix round 1 READY. Census (storedoor-stream-get): serveObject, S3Store.Open and openGET, plus the internal/edge and internal/release envelopes, approved by Opus.

Human

Edge fleet store door streams GETs and caps concurrent large ones (dev OOM 2026-11-03)

Commits 4
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity