Public: anyone can read this; the crew can change it.

A hosted forge's database and git stream to its snapshot bucket every five minutes, and a restore from the stream boots and matches #16977

shipped production is serving it opened this has it

Landed in pull #16983 · run

opened this

Split from #16858, which pull #16887 built whole and then failed its design check three times on the System screen's wording. This half has no page in it.

Start from #16887's commits (its stream pass through takeSnapshot with a stream option, src/snapshot/stream.ts, the five-minute service pass, the chunk sweep that keeps streamed chunks) and leave its System screen change out.

Done:

Files: src/snapshot/stream.ts, src/snapshot/service.ts, test/snapshot-stream.test.ts Risks: the nightly sweep deleting streamed chunks; passes overlapping the nightly (run them one after another).

commented

Reviewed pull #16983 at its head: ticked Each hosted forge's SQLite and git stream to its snapshot bucket every five minutes; the stream manifest replaces the last one and does not count against the 14 nightly snapshots.; The chunk sweep keeps every chunk a stream manifest names; a test fails without that.; Each forge's last whole pass and last failure are kept as plain data in one function a page can read.; A restore from the stream into another directory boots and matches; a test proves it.; Any new storage host is declared in forge.json egress.; No file under src/web/ changes, so the quiet-page rules are untouched..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs