docs(albok-nemi): nemi now prunes reports and takes a run lock

This commit is contained in:
vh
2026-10-03 06:00:23 -07:00
parent 70fa0fbd53
commit 6a274a412a
+6 -4
View File
@@ -26,13 +26,15 @@ sixth of the interval). An unchanged object costs 0.042 s to submit, in batches
Each run is its own ingest run id, and a full walk tombstones whatever the other run did not send. The timer Each run is its own ingest run id, and a full walk tombstones whatever the other run did not send. The timer
gives this for free: it never starts a oneshot that is still active. **For a manual walk, use gives this for free: it never starts a oneshot that is still active. **For a manual walk, use
`systemctl --user start albok-nemi.service`**, which joins or waits on the running one. Never run a bare `systemctl --user start albok-nemi.service`**, which joins or waits on the running one. Since 2026-10-03 0600 nemi
`uv run nemi run` alongside the timer. also takes a non-blocking `flock` on `<state_dir>/run.lock` for the whole run, so a second run exits 1 and names the
lock. If a hand-started run holds the lock when the timer fires, the unit exits 1 and OnFailure mails infra-ops
with that message. That mail is benign.
## Notes ## Notes
- It runs albok-dev's **working tree**, not a pinned release. A broken edit there fails the next walk, and - It runs albok-dev's **working tree**, not a pinned release. A broken edit there fails the next walk, and
OnFailure mails infra-ops. Forward that to albok-dev. OnFailure mails infra-ops. Forward that to albok-dev.
- ⚠ **The reports grow without limit:** about 2.3 MB per run, roughly 55 MB a day. Retention is albok-dev's to add - **Reports:** since 2026-10-03 0600 nemi keeps the newest 48 run reports (two days, at most about 100 MB) and
in nemi (flagged 2026-10-03). Until then, watch nh3-dev's root disk. prunes the rest on every write. `eval-*.json` files are measurements and are kept.
- Uninstall: `systemctl --user disable --now albok-nemi.timer`, then remove the two units and the `.d` dir. - Uninstall: `systemctl --user disable --now albok-nemi.timer`, then remove the two units and the `.d` dir.