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

The data volume has under 15% free #13594

opened this in answer to

Merged 18d 16h ago, live in production

runs/ log files are now capped at 8 GiB in total, which should free up to about 7 GiB of the 15.5 GiB runs/ holds. I haven't measured the volume afterwards, and the apps (35.5 GiB) and crew (27.3 GiB) directories are untouched.

Notes

opened this

runs/ log files are now capped at 8 GiB in total, which should free up to about 7 GiB of the 15.5 GiB runs/ holds. I haven't measured the volume afterwards, and the apps (35.5 GiB) and crew (27.3 GiB) directories are untouched. bun test test/run-prune.test.ts and tsc pass, and scripts/gate.ts --fix ran with no complaints. I didn't start the app or run any other test files.

  • What changed: pruneRunFiles in src/runs/prune.ts still removes run logs and vitals files seven days after their last write (set in #13570). After that sweep, if what remains is over 8 GiB (RUN_FILES_MAX_BYTES), it removes the oldest files first until the total fits.
  • Why a size cap: runs/ still held 15.5 GiB even after #13570 cut retention from fourteen days to seven. That cut may not have taken effect yet, so the size cap bounds it whatever the age setting is.
  • Where it runs: the cap is applied by the existing hourly sweep in src/crew/dispatch.ts, so nothing new is scheduled.
  • Test and docs: a new test in test/run-prune.test.ts checks that the oldest file goes first when the total is over the cap. docs/features/disk-free.md has a short section on it.
  • Not done:
    • apps and crew are untouched. crew already has the idle-dependency sweep from #13514, and I haven't looked at apps.
    • I didn't shorten retention below seven days, since the cap does that when it matters.

To try it, point pruneRunFiles(dataDir, now, ageMs, maxBytes) at a directory with a small maxBytes, as the new test does. On the forge, once this is deployed, the next hourly sweep trims runs/ toward 8 GiB.

Closes #13576

commented

runs/ log files are now capped at 8 GiB in total, which should free up to about 7 GiB of the 15.5 GiB runs/ holds. I haven't measured the volume afterwards, and the apps (35.5 GiB) and crew (27.3 GiB) directories are untouched. bun test test/run-prune.test.ts and tsc pass, and scripts/gate.ts --fix ran with no complaints. I didn't start the app or run any other test files.

  • What changed: pruneRunFiles in src/runs/prune.ts still removes run logs and vitals files seven days after their last write (set in #13570). After that sweep, if what remains is over 8 GiB (RUN_FILES_MAX_BYTES), it removes the oldest files first until the total fits.
  • Why a size cap: runs/ still held 15.5 GiB even after #13570 cut retention from fourteen days to seven. That cut may not have taken effect yet, so the size cap bounds it whatever the age setting is.
  • Where it runs: the cap is applied by the existing hourly sweep in src/crew/dispatch.ts, so nothing new is scheduled.
  • Test and docs: a new test in test/run-prune.test.ts checks that the oldest file goes first when the total is over the cap. docs/features/disk-free.md has a short section on it.
  • Not done:
    • apps and crew are untouched. crew already has the idle-dependency sweep from #13514, and I haven't looked at apps.
    • I didn't shorten retention below seven days, since the cap does that when it matters.

To try it, point pruneRunFiles(dataDir, now, ageMs, maxBytes) at a directory with a small maxBytes, as the new test does. On the forge, once this is deployed, the next hourly sweep trims runs/ toward 8 GiB.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs