Load Balancer Target Group

0

Hi AWS, I have a question i.e.

Does adding new target group with healthy instances and removing the old target group from the AWS load balancer in production makes any negative impacts?

Services involved: Launch template Load balancer Target groups Auto scaling group

This is the complete process:

Step1: We create stagging servers(which were spinned from the previous ami), push our jar, wars into the tomcat.

Step2: Creating images from that stagging servers. Attach it to the launch template. And set it as default version.

Step3: Now we drain one server from the target group, after successful draining we delete that server so new one spins. Until the new one becomes healthy we don't drain the second server.

Step4:

We remove second instance after checking the new spin instance become healthy and after successful draining of the second one we remove it and new will spin. Because of desired capacity is set to 2.

Having said that I want to automate this process as currently we are doing it manually and it is error prone and very time consuming. How can we effectively automate this process with the least cost possible in a more reliable and faster development mode.

Please help.

1개 답변
0

Thank you for the details.

As you are using Auto Scaling Group, I would recommend taking a look at instance refresh feature, which pretty much automates all the mentioned manual process: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html

For instance, set the minimum healthy percentage to 100 percent, ASG will ensure there's at least one healthy instance and gradually replace all the instances to use the new launch template. Please take a look, have an experiment in the staging environment, and see if this fits your requirement.

AWS
weidi
답변함 10달 전
profile picture
전문가
Kallu
검토됨 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠