Connection draining, also known as deregistration delay, is a feature in Elastic Load Balancing that enables in-flight requests to be completed when an instance is being terminated or removed from the load balancer. It helps ensure that existing connections are not terminated abruptly, giving exist…Connection draining, also known as deregistration delay, is a feature in Elastic Load Balancing that enables in-flight requests to be completed when an instance is being terminated or removed from the load balancer. It helps ensure that existing connections are not terminated abruptly, giving existing requests a chance to complete before terminating the instance. The feature is particularly useful during planned maintenance or scaling events. The connection draining timeout value can be configured to determine the maximum time to keep connections open before forcefully terminating them.
Guide to AWS ELB Connection Draining
ELB Connection Draining is a feature provided by Amazon Web Services (AWS) as a part of Elastic Load Balancing (ELB). Its purpose is to ensure smooth execution of services hosted on AWS when an instance is de-registered or becomes unhealthy. Here is a comprehensive guide on ELB connection draining.
What is ELB Connection Draining? When enabled, the ELB Connection Draining feature prevents new connections from being sent to the instance which is being de-registered or has become unhealthy while ensuring that already existing connections are served to their completion. This is achieved by redirecting the traffic to other healthy instances.
Importance of ELB Connection Draining Without connection draining, in-progress connections could be abruptly terminated leading to a degraded user experience. By allowing in-flight requests to complete, it helps ensure that your application remains available to users during administrative activities or in the event of a failure.
How ELB Connection Draining Works? When an instance is being de-registered, ELB waits for on-going connections to complete for a specified period, known as the draining timeout. If a timeout is not specified, the default value is 300 seconds. If connections do not complete within this period, they are forcibly closed.
Exam Tips: Answering Questions on ELB Connection Draining - Always remember that ELB Connection Draining is used to redirect traffic from unhealthy instances. - Understand that by allowing requests to complete, it ensures application availability. - Know the default timeouts and how to modify them. - Understand what happens if connections don't complete within the timeout period. - Be aware that connection draining can be disabled if required by your use case.
AWS Certified Solutions Architect - ELB Connection Draining Example Questions
Test your knowledge of ELB Connection Draining
Question 1
An AWS Classic Load Balancer (CLB) with Connection Draining enabled is showing increased request latency during deployments when instances are frequently deregistered. You suspect that long-lived connections are remaining in draining state and reducing available capacity. What is the most appropriate next step to both diagnose and address the issue?
Question 2
Which of the following actions is required for configuring an ELB to use connection draining?
Question 3
You have an auto-scaling group set up for an application with an Elastic Load Balancer (ELB). Instance termination is taking longer than expected, causing deployment delays. What solution should you implement?
🎓 Unlock Premium Access
AWS Certified Solutions Architect - Associate + ALL Certifications
🎓 Access to ALL Certifications: Study for any certification on our platform with one subscription
5645 Superior-grade AWS Certified Solutions Architect - Associate practice questions
Unlimited practice tests across all certifications
Detailed explanations for every question
AWS Certified Solutions Architect: 5 full exams plus all other certification exams
100% Satisfaction Guaranteed: Full refund if unsatisfied
Risk-Free: 7-day free trial with all premium features!