Flowcharts & Processes

Graceful Service Shutdown Sequence

Flowcharts & Algorithms diagram · made in Skemio

Flowchart showing graceful shutdown: SIGTERM signal, fail readiness probe, wait propagation, drain requests, close DB pools, process exit.
Flowchart showing graceful shutdown: SIGTERM signal, fail readiness probe, wait propagation, drain requests, close DB pools, process exit.

What it shows

  • Catch SIGTERM first to stop accepting new requests at the load balancer.
  • Sleep a short delay to allow DNS and routing tables to propagate.
  • Drain existing in-flight connections before closing DB pools.

The takeaway

Graceful shutdown is a phased drain: deregister first, finish active work, close pools last.

More flowcharts & algorithms diagrams