Recovery, drain, and shutdown¶
A node stops for three reasons: it crashed, it was asked to, or it is under enough pressure that it holds back work. This subsection covers how a node recovers from the first, how it finishes cleanly for the second, and how it pauses and resumes for the third, together with the boundaries every recovery path holds to.
The state these paths rebuild is covered in Cursors, leases, and durable node state.
Recovery¶
- Recovery reconcile runtime covers the one decision every watch produces, from progress to a forced resync.
- Re-derive versus reload covers which state is read back from the volume and which is rebuilt from a peer.
- Resuming assignment processing after a crash covers the start order and which assignments arrive again.
- Resuming telemetry delivery after a crash covers where each channel's content comes back from.
- Leases held at crash time covers the ledger lease and the local claim, and the window between them.
Reconnection¶
- Reconnecting to a live project runtime covers the ownership checks and the five-step reconnect plan.
- Re-handshake covers registering with the control plane again and handshaking with each kernel.
- Mass restart recovery covers the restore order across planes, the stop conditions and forced resync.
Drain and shutdown¶
- Shutdown and drain covers the request, the drain state each cycle and the exit condition.
- Two-phase drain covers what each phase refuses and what carries on.
- Health probes and lifecycle management covers the phase machine and the three probes.
- Jobs garbage collector runtime covers evidence-first cleanup of the Jobs a node leaves behind.
Boundaries¶
- Recovery boundaries covers the boundaries every recovery path holds, and the condition each one reports.