Monitoring and Scaling an application in AWS
Amazon CloudWatch — Amazon CloudWatch is a monitoring service for AWS Cloud resources and the applications that you run on AWS. You can use Amazon CloudWatch to collect and track metrics, collect and monitor log files, set alarms, and automatically react to changes in your AWS resources.
After creating the EC2 instances in the VPC. If the application is experiencing heavy traffic from outside internet and if the EC2 instances are having high CPU utilization than the threshold then the EC2 instances report to the cloud watch monitoring tool. The cloud watch monitoring tool reports an alarm and as per the auto-scaling policy, the new EC2 instances with the same configuration will be added to the group of servers.
After adding the EC2 instances in the public subnets the ELB shares the traffic evenly to all the EC2 instances in the VPC and if the CPU utilization of the EC2 instances is less than the threshold value then the auto-scaling removes the newly added EC2 instances eventually from the public subnets.
That's a wrap-up!!! END of AWS series!!! 🥳🥳🎈🎈