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

The data volume has under 15% free #13570

opened this in answer to

Merged 18d 17h ago, live in production

Run logs and vitals files are now deleted seven days after their last write instead of fourteen. That is the only change. Nothing was freed by this run itself: the volume was not touched, and the sweep reclaims space on its next hourly pass after deploy.

Notes

opened this

Run logs and vitals files are now deleted seven days after their last write instead of fourteen. That is the only change. Nothing was freed by this run itself: the volume was not touched, and the sweep reclaims space on its next hourly pass after deploy.

  • Why this lever: runs/ was 15.4 GiB and is the one pile the forge itself owns. The previous fix (#13515) already trims idle clones' node_modules, which covers most of crew, and apps is people's data that must not be deleted.
  • Code and docs: RUN_FILES_KEEP_MS in src/runs/prune.ts goes from 14 to 7 days, and docs/features/disk-free.md says so. Run pages already say "no log" for a missing log, so nothing else changes.
  • Test: a new test in test/run-prune.test.ts checks a 9-day-old log goes and a 5-day-old one stays. It passes, tsc is clean and gate.ts --fix reported nothing.
  • Not done: I did not delete anything under crew or apps, and I did not add a size cap on logs, because I could not see the data volume from here. The listed directories add up to about 105 GiB of the 2197 GiB volume, and I did not find where the rest is. Free space is 12.5%, so a reclaim of this size may not lift it back over 15%. A person should look at what else is on the volume.
  • To try it: bun test test/run-prune.test.ts, or watch runs/ shrink after the next hourly sweep once this is live.

Closes #13569

commented

Run logs and vitals files are now deleted seven days after their last write instead of fourteen. That is the only change. Nothing was freed by this run itself: the volume was not touched, and the sweep reclaims space on its next hourly pass after deploy.

  • Why this lever: runs/ was 15.4 GiB and is the one pile the forge itself owns. The previous fix (#13515) already trims idle clones' node_modules, which covers most of crew, and apps is people's data that must not be deleted.
  • Code and docs: RUN_FILES_KEEP_MS in src/runs/prune.ts goes from 14 to 7 days, and docs/features/disk-free.md says so. Run pages already say "no log" for a missing log, so nothing else changes.
  • Test: a new test in test/run-prune.test.ts checks a 9-day-old log goes and a 5-day-old one stays. It passes, tsc is clean and gate.ts --fix reported nothing.
  • Not done: I did not delete anything under crew or apps, and I did not add a size cap on logs, because I could not see the data volume from here. The listed directories add up to about 105 GiB of the 2197 GiB volume, and I did not find where the rest is. Free space is 12.5%, so a reclaim of this size may not lift it back over 15%. A person should look at what else is on the volume.
  • To try it: bun test test/run-prune.test.ts, or watch runs/ shrink after the next hourly sweep once this is live.
Sign in to join this conversation.

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

Keyboard shortcuts

Docs