Servers stop for ordinary reasons: a deployment replaces them, a scaling system removes capacity, an operator performs maintenance, or the operating system asks a process to terminate.
If a server exits immediately, active requests lose their connections. Database transactions may be interrupted, queue messages may be redelivered, and thousands of long-lived clients may reconnect at once.
A graceful shutdown turns termination into a bounded sequence:
Connection draining is the network-facing part of that sequence. New connections or requests are directed elsewhere while existing work receives time to complete.
Graceful does not mean waiting forever, and it does not guarantee that every operation finishes. It means making termination predictable, minimizing interruption, and reaching a clean stopping point within a fixed grace period.