Immediate SIGKILL after kill_timeout vs Graceful SIGTERM Handling: Choosing the Right Nomad Shutdown Strategy
When stopping a Nomad job allocation, the scheduler first sends SIGTERM and then waits the duration defined by kill_timeout before escalating to SIGKILL if the task is still running. For rolling updates, the stop_timeout in the update stanza determines how long Nomad waits for a canary allocation to stop before proceeding. The goal is to choose a shutdown ap