Does Target Group Updates Instances Dynamically?
We all know what is a target group, it is a pool of EC2 instances. It sits between the load balancer and ASG.
When you add EC2 instances to the target group manually which is registering and deregistering EC2 instance.
But in real time, we don't register/deregister manually. For this we need to create an EMPTY TARGET GROUP and attach the load balancer and refer that load balancer to the ASG.
I created an empty target group.
Attached this a load balancer and associated the load balancer to the ASG.
Now we have an EC2 instance created and it gets registered automatically with the target group.
Let’s terminate the instance and ASG will replace
the instance. This should also
update the target group dynamically.
Now, we can see a new instance created in ASG.
i-06f8b560ea0a3bbaa Instance ID should be updated in
target group.
We can see the new instance updated dynamically.
Comments
Post a Comment