A user has created an ELB with Auto Scaling.
Which of the below mentioned offerings from ELB helps the user to stop sending new requests traffic from the load balancer to the EC2 instance when the instance is being deregistered while continuing in-flight requests?
ELB sticky session
ELB deregistration check
ELB connection draining
ELB auto registration Off
Explanations:
ELB sticky sessions are used to bind a user’s session to a specific EC2 instance, ensuring that all requests from that user during a session are directed to the same instance. However, this does not manage the deregistration process or the traffic flow during instance deregistration.
The ELB deregistration check is a health check that determines if an instance is still healthy and should receive traffic. While it helps in managing which instances are active, it does not control the flow of requests during deregistration, so it does not prevent new requests from being sent to an instance being deregistered.
ELB connection draining allows in-flight requests to complete while stopping new requests from being sent to an instance that is in the process of being deregistered. This ensures that ongoing connections are maintained until they finish, making it the appropriate feature for managing traffic during instance removal.
ELB auto registration off refers to not automatically registering new instances with the load balancer. This setting does not address the need to handle existing connections or the request flow during the deregistration of an instance, making it unrelated to the connection management process.