AWS Service: Auto Scaling & SNS
Auto Scaling: – When the load is increasing in Load Balancers autoscaling will automatically increase the instances in Load balancers – Practical steps: create an AMI use the AMI for the Autoscaling configurations Add the AMI in Launch configuration Now create the rule using Auto scaling groups create an ALB and attach it to the auto-scaling group. – Launch autoscale: – Create Autoscaling: – Instance created automatically: – Tested with Load Balancer: Target tracking - it will increase or decrease with a single value step scaling - step by step simple scaling - overall increase – To check autoscale adding load to CPU: – Sample script to increase CPU load: Inside machine: vi load.sh #!/bin/bash dd if=/dev/zero of=/dev/null bs=50000 count=1000000 vi for.sh #!/bin/bash for i in {1..10} do sh load.sh done chmod a+x load.sh chmod a+x for.sh – Instance launched automatically: – Automatically attac...