Repository navigation
Deployment and Rollback
Design stage. Nothing here is implemented.
/var/minecraft/26.2/current points at a materialized set directory. Deploying a validated modset means:
- Materialize the set — hardlinks from the content store, so it is fast and nearly free.
- Stop the server.
- Repoint
currentat the new digest. - Start it again.
Rollback is the same flip in reverse. The previous several validated sets stay on disk; being hardlinks they cost almost nothing, so recovery is seconds rather than a rebuild.
| Version role | Authorization |
|---|---|
| Staging | Redeploys automatically as soon as a set validates |
| Live | Waits for explicit operator approval |
The live role is a column in the version table, not a constant. pummelchen-engine version promote --version 26.4 moves it: the new version starts requiring approval, the previous one relaxes to staging, and the global download aliases follow. No redeploy and no configuration edit.
The live server additionally refuses to restart while players are connected unless the operator overrides. Validation proves a set boots; it does not make it acceptable to drop everyone mid-session.
Every deployment records which digest replaced which, when, and on whose approval.
A server that fails to start on a newly deployed set rolls back to the previous digest by itself and reports it loudly.
This case deserves attention rather than a quiet retry. A set that passed validation but will not boot in production means the test environment has diverged from production — different NeoForge build, different Java, different config, a file that did not materialize. That is a bug in this system, and silently recovering from it would hide the only signal that the validation tier is no longer trustworthy.
Stated plainly so it is not assumed away. Boot-plus-idle-soak proves a set loads and survives several minutes unattended. It does not prove:
- that gameplay works
- that worldgen is sane
- that recipes and tags resolve correctly under use
- that the set performs acceptably with players online
- that client-side mods behave for a connecting player
These were partly covered in v1 by RCON smoke tests and headless client soaks. Both were considered and set aside — RCON smoke as a plausible later addition, client soak as too expensive to sit inside a bisection loop. If gameplay regressions start slipping through, the RCON tier is the next thing to build, not a deeper client test.
Keep the active set plus the last few validated ones per version. Prune older set directories and any store blob no longer referenced by a retained set.
v1 learned this the hard way and added automatic post-release cleanup after manual disk management became the only thing standing between the host and a full volume. On a small VPS, retention policy is not housekeeping — it is uptime.
Design stage — not implemented
Design
Validation
Trust
Interfaces
Operations
Project
Reference