[docs] Add §13 to runbook — Updating an existing deploy via service_complete --update --release #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add a section to
docs/ops/DEPLOYMENT.mddocumenting the canonical "update an existing Hero OS deploy to latest origin/development" flow, so operators have a clear post-deploy update story.Background
hero_skills@4cb40f6shippedservice_complete --update --releaseas the canonical "pull all latest source, gentle-build, force-restart everything" entry point. Two operator-relevant fixes are baked in:nice -n 19 ionice -c 3 -j 4by default so a build can no longer monopolise the host while live services are running on the same VM (lessons from herodemo cargo storm 2026-04-30 — load avg 80+ on a 16-CPU VM, demo unresponsive whilecargo build -j 16competed for I/O).start --updatenow also passes--resetper service, so phase 2 actually restarts each service to pick up its freshly built binary (was a silent no-op before).The mechanism works. It is not yet documented in the runbook.
Acceptance criteria
docs/ops/DEPLOYMENT.md(number TBD — likely §13 or a sub-section under §6) titled along the lines of "Updating an existing deploy".git pull --ff-only origin/development, gentlecargo build --release, copy binary to~/hero/bin/.service_X start --reset --update, force re-register + restart.hero_proc service list— every service green/hero_<svc>/ui/healthendpoints return 200HERO_CARGO_NICE(default 19)HERO_CARGO_IONICE_C(default 3)HERO_CARGO_JOBS(default 4)forge mergeaborts on local uncommitted changes, common cause).Out of scope
References
hero_skills@4cb40f6— the canonical update mechanism.hero_proc#81— the sysmon fd leak fix that made gentle cargo work in practice.Signed-off-by: mik-tf
Shipped in
67e5765. §13 "Updating an existing deploy" with subsections 13.1-13.5 (preflight, tunable knobs, verification, single-service path, troubleshooting). Old §13 "Open work" moved to Appendix D as historical changelog.Signed-off-by: mik-tf