wiki: park-2 disk growth incident (backups on the data disk, snapshot valve)
Incident analysis of 2026-11-20, measured read-only on park-2: nightly full backups on the same disk push it past 70%, where the snapshot valve deletes all but 500 snapshots and likely freezes the server. Records the manual cleanup, the deferred fixes and the next deadline, and notes the findings on backup-recovery, entry-exit-points, vision-review-outbox and open-questions. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RZgP5oZdzvo92Eouc9eRv5
This commit is contained in:
+25
@@ -3759,3 +3759,28 @@ lost. Fixed (uncommitted) in `platform-ws.ts`: the plugin's commands are called
|
||||
own channel from the start, and early frames are held until the open. Not yet checked in the
|
||||
desktop app. Also recorded that both park-lab cameras now push to the dev machine. Updated
|
||||
[[desktop-shell-tauri]], [[camera-live-view]], [[passage-confirmation]].
|
||||
|
||||
## [2026-11-20] query | park-2 disk growth — backups, pass samples, and the snapshot valve
|
||||
|
||||
User asked how long before park-2's disk fills (`parking.sqlite` 6.1 GB and growing). Measured
|
||||
read-only on park-2:
|
||||
- the disk is filled by `/data/backup` (30 nightly full, uncompressed copies on the same disk,
|
||||
~127 GB), not the DB;
|
||||
- the DB grows ~150–200 MB a day, almost all `snapshots`, and 66% of those are Car Wash `pass:`
|
||||
samples (`anpr-entry.ts` `#recordPass`) that nothing deletes;
|
||||
- the disk is at 69.75%, so the disk-pressure snapshot valve fires 2026-11-21 ~14:16 UTC. It will
|
||||
delete all but 500 snapshots daily, and its synchronous loop is likely to freeze the server.
|
||||
|
||||
Corrected an earlier claim made in chat ("~6 photos per vehicle"): it is about one per ledger
|
||||
identity plus the pass samples. Wrote [[park-2-disk-growth]]. Updated [[entry-exit-points]]
|
||||
(contradiction: the valve is not a no-op), [[vision-review-outbox]], [[backup-recovery]],
|
||||
[[open-questions]] #10, and the index.
|
||||
|
||||
## [2026-11-20] query | park-2 disk growth — manual cleanup, fixes deferred
|
||||
|
||||
Reviewed [[park-2-disk-growth]] against the code. The user deleted old backup files on the host:
|
||||
six remain, disk at 29%, the valve is disarmed. Retention is unchanged (no app login on park-2),
|
||||
so the disk reaches 70% again around 2026-12-05. The user deferred the code fixes until the
|
||||
feature work on `stage` is deployable. Recorded the new state, the next deadline and the
|
||||
corrections from the code review (freeze length, compression, no threshold knob, partial files)
|
||||
on the page.
|
||||
|
||||
Reference in New Issue
Block a user