AWS EC2 Auto Scaling Groups with Application Load Balancer
HTML-код
- Опубликовано: 25 авг 2024
- This video explains how to add an Application load balancer to your auto scaling group to distribute the load across multiple instances.
References:
Auto scaling group - • AWS EC2 Auto Scaling G...
Application load balancers - • Application Load Balan...
Thank you so much! You've made my day with this video. Great presentation by the way.
I am so glad that you liked it :) thanks for your support!
Awesome video
Glad you liked it :) thanks!
could you please help if their are some changes on the application (code) how auto scaling create new instance with new code.
Hi Hitesh,
If the application code changes, I would assume the underlying image would change. So, you might need to patch the AMI and update the ASG, more details here - docs.aws.amazon.com/systems-manager/latest/userguide/automation-walk-patch-windows-ami-autoscaling.html
Otherwise, you can try using a combination of CodeDeploy and ASG, more details here - docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html
Please let me know if you are looking to handle a different scenario.
@4:05 do you mean to edit inbound rules in all security groups
Hi Ruchi,
If you have more than one security group attached to your VM, the union of all the rules from each security group will be applied to the VM. So, it should be ok to add the rule in just one security group.
If target groups Heath status shows unhealthy what should be done?
Could you please check the below settings -
1. The security group associated with the servers allows port 80 access from LB security group
2. The security group associated with the LB allows port 80 access from 0.0.0.0
3. The NAT gateway and Internet gateways are attached to the private and public subnets respectively
4. The health checks are configured correctly with appropriate settings as shown
5. The server has executed the user data script and configured correctly.
poor sound