diff --git a/docs/MONITORING.md b/docs/MONITORING.md index 21d4f69..98931c0 100644 --- a/docs/MONITORING.md +++ b/docs/MONITORING.md @@ -116,7 +116,7 @@ journalctl -u processor -o cat --since -1h | jq -cR 'fromjson? | select(.logger ## Disk GC -Provisioner's disk GC and headroom sensor (provisioner#61), **VERSION 3** (#99), installed and turned on through gregoryfoster/skills `maintaining-host-disk` ([skills/maintaining-host-disk](../skills/maintaining-host-disk/SKILL.md), #82). VERSION 3 changed only the `vscode-servers` tier: it keeps every `Stable-*` build newer than the newest live one, and the newest when none is live, by `server/product.json`'s version ([editor-builds.md](../skills/maintaining-host-disk/references/editor-builds.md)). Its first run, 2026-10-31 05:44Z, exited 0: it removed 135.3M in 2 items (a 135.1M `vsix-cache` entry and the npm cache), kept 6 (among them `Stable-2c33b50b`, 1.144.0, newer than the live 1.140.0), and left `/` at 57%. The skill's [turning-on.md](../skills/maintaining-host-disk/references/turning-on.md) is the procedure; this section is what's particular to this host. The GC's tiers and rules are Provisioner's. A change to them is raised there, through the operator, and never patched into the installed copy: the installer refuses a copy that doesn't match its MANIFEST. +Provisioner's disk GC and headroom sensor (provisioner#61), **VERSION 5** (#158; VERSION 3 from #99), installed and turned on through gregoryfoster/skills `maintaining-host-disk` ([skills/maintaining-host-disk](../skills/maintaining-host-disk/SKILL.md), #82). Since VERSION 4 the `vscode-servers` tier keeps, besides any build in use, only the newest `Stable-*` version newer than the newest live one (all its builds), and the newest when none is live, by `server/product.json`'s version ([editor-builds.md](../skills/maintaining-host-disk/references/editor-builds.md)). VERSION 3 kept every newer build, one more with each VS Code release; VERSION 5 changed only a docstring. VERSION 3's first run, 2026-10-31 05:44Z, exited 0: it removed 135.3M in 2 items (a 135.1M `vsix-cache` entry and the npm cache), kept 6 (among them `Stable-2c33b50b`, 1.144.0, newer than the live 1.140.0), and left `/` at 57%. VERSION 5's first run, 2026-12-02 17:27Z, started by hand through its unit, exited 0. No build was live on disk (the running 1.145.2's directory was already gone, most likely removed by VS Code's own CLI `[inferred 2026-12-02]`), so it kept only 1.149.0, removed 3.2G in 7 items (four builds, 1.145.3 to 1.148.0, a 409M extension, the VSIX cache), and took `/` from 74% to 56%. The skill's [turning-on.md](../skills/maintaining-host-disk/references/turning-on.md) is the procedure; this section is what's particular to this host. The GC's tiers and rules are Provisioner's. A change to them is raised there, through the operator, and never patched into the installed copy: the installer refuses a copy that doesn't match its MANIFEST. | What | Where | |---|---| @@ -144,7 +144,7 @@ uv run pytest tests/test_disk_gc.py # on the node: the installed copy matches, **With PATCHING.md § Patching:** - **patching-hosts reads `[sensor] mount` and `alert_at_percent` as a floor** (gregoryfoster/skills#390). It refuses a step whose download and install would take `/` to 85%, and stops on a config the GC would refuse. - **The GC's daily run (05:15–05:45) falls inside the Tuesday window.** It never touches apt's trees, and it yields: `Nice=10`, idle I/O. -- **After a reboot,** if the GC runs before VS Code reconnects, it finds no build running and keeps the newest (VERSION 3, #99). Under VERSION 2 it kept none, and the next session re-downloaded its build (about 640M). +- **After a reboot,** if the GC runs before VS Code reconnects, it finds no build running and keeps the newest (since VERSION 3, #99). Under VERSION 2 it kept none, and the next session re-downloaded its build (about 640M). - **A run the reboot cuts off** finishes the next day. A missed day pages only as `gc-stale`, after 72 h. **Read it** without sudo: `exedev` is in `adm`, so `journalctl -u cannobserv-disk-headroom -p err --since -1d` reads the alerts. verifying.md's `sudo` is for users outside `adm`, for whom the same command prints `-- No entries --`. Its rule holds here too: only `checked in ok (ok): HTTP 202` proves a check-in.