Stack OverflowAlex WilliamsExplainer
A Reboot Is Still a Deployment
Summary
The author argues that a host reboot after a kernel update is not a finished deployment unless the service has done real work and produced an expected result. They illustrate this with a rehearsal of a queue-backed export service on two Linux hosts, showing that a process reporting up, a unit active, and a mount present are not enough to prove the service recovered correctly. Canonical’s new kernel release strategy ships a new kernel every week, each requiring a reboot, so teams must plan for more frequent restarts. The author proposes a maintenance plan where a returning worker completes one representative job against its intended dependency and leaves a result someone other than the worker can check. They recommend splitting responsibility between a host operator and a service owner, and holding the worker out of normal intake until the evidence is present.
Context
The author argues that a host reboot after a kernel update is not a finished deployment unless the service has done real work and produced an expected result. They illustrate this with a rehearsal of a queue-backed export service on two Linux hosts, showing that a process reporting up, a unit active, and a mount present are not enough to prove the service recovered correctly.
Approach / What changed
The author proposes a maintenance plan where a returning worker completes one representative job against its intended dependency and leaves a result (a file on the right volume and a queue row naming the worker) that someone other than the worker can check, and suggests splitting responsibility between a host operator (Dana) and a service owner (Marcus).
Takeaways
A reboot can change more than the kernel: it can remount volumes, restart dependencies in an untested order, and alter resource limits, all without touching application code.
Canonical’s new kernel release strategy ships a new kernel every week via overlapping two-week cycles, meaning teams must plan for more frequent reboots to apply kernel updates.
A rollback to the previous kernel does not restore packages upgraded in the same window, cannot reach the queue or exports, and may cause duplicate work if the application cannot recognize already-finished jobs.
FAQ
What can change during a reboot besides the kernel?
A reboot can bring back a different kernel, remount volumes, and restart everything on that host the service talks to in an order the last deployment never tested. Lowering a container's CPU limit from two to one can double processing time without touching code, showing that a service runs on more than its code.
How did Canonical change its kernel release schedule?
Canonical announced a new kernel release strategy on September 23 that replaces its four-week regular and two-week security update cycles with overlapping two-week cycles, shipping a new kernel every week. Each new kernel requires a reboot to run, so teams must plan for more frequent restarts.
What does booting the previous kernel not restore?
Booting the previous kernel brings back that kernel but does not restore packages upgraded in the same window, and it cannot reach the queue, exports already on the volume, or anything the worker has sent to another system. If the recovery plan replays jobs after a rollback and the application cannot recognize a finished job, that job can run twice and leave a duplicate export.
Source and freshness
- Source
- stackoverflow.blog
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.