Node.js Graceful Shutdown: Draining Connections on SIGTERM
Learn how to handle SIGTERM in Node.js APIs: deregister from the load balancer, drain keep-alive connections under a deadline, and close dependencies in order.
17 min read
Tag
Learn how to handle SIGTERM in Node.js APIs: deregister from the load balancer, drain keep-alive connections under a deadline, and close dependencies in order.
17 min read
Why server.shutdown=graceful alone drops requests on Kubernetes, and how a preStop delay and a timeout budget give you zero-downtime pod termination.
13 min read