What is connection draining (deregistration delay)?
IntermediateConceptLoad Balancers, Proxies & CDNs
Answer
When a target is removed or terminated, the balancer stops sending new requests but lets in-flight ones finish for a configured period (ALB default 300 seconds). Without it, deployments cut active requests.
Set it to slightly above your longest typical request, make the app handle SIGTERM gracefully, and stop accepting new work while finishing current work.
More on Load Balancers, Proxies & CDNs
What is a load balancer and why do we use one?BeginnerWhat is the difference between L4 and L7 load balancing?IntermediateCompare ALB, NLB, GWLB and Classic Load Balancer in AWS.IntermediateWhat load-balancing algorithms are common?BeginnerWhat are health checks and how should they be designed?AdvancedWhat are sticky sessions and what are the drawbacks?Intermediate