Application Load Balancer not freeing up old private ip after changing subnet

0

Hi, I have an ALB deployed in 2 AZs. I want retire the subnets it has been using. I successfully changed the subnets to the newer ones but it has been 6 days since the subnet update I can still see an ENI owned by this ALB running in the old subnet with the status "in use". I can not detach or delete it.

I tried to remove that AZ for my ALB for several minutes and later add the AZ back with the new subnet. However, that ENI with ip from old subnet is still there handing traffic.

Also I enabled VPC Flow logs for that subnet, I can see many requests going between this specific ENI to all the target groups it has associated with, both healthcheck and normal user requests. How can i get rid of it? I have target groups associated with this ALB with attributes "stickiness" set to "ON", Is there the reason for this behavior?

  • the ENI with old ip is gone. It almost exactly 7 days from deleting the old subnet. Not sure it is because the stickiness settings or my other approaches today.

1回答
0

Thanks for the detailed description.

First of all, when you update the subnets, the ALB nodes (ENIs) are replaced with new nodes in new subnets. Replaced node that has been removed from service will first be removed from DNS so that new traffic will not be sent to it. Then it will enter a grace period waiting for traffic to drain, and existing requests to be completed, after which it will be shutdown. That said, if your clients continue to send requests to the replaced nodes (e.g. through a long-lived connection), the node takes longer time to be drained.

Stickiness setting on the other hand is to make sure any ALB node forwards to the same target or target group, which does not contribute to the current observation.

AWS
weidi
回答済み 2年前
profile pictureAWS
エキスパート
レビュー済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ