grace period
The time a system waits after asking a process to stop, usually with SIGTERM, before killing it by force with SIGKILL.
In more detail
Kubernetes waits 30 seconds by default. Shutdown work must fit comfortably inside it.
Related terms
- SIGTERM — The signal that politely asks a process to finish its work and exit.
- SIGKILL — The signal that ends a process immediately; it cannot be caught or ignored.
- graceful shutdown — Stopping a service in an orderly way: finish current work, close connections, then exit.
Taught in
- Cluster Architecture: node:cluster & Zero-Downtime — Node.js Internals & Backend Services
- Production Hardening: Graceful Shutdown & Docker — Node.js Internals & Backend Services