EC2 AutoScaling group and a loadbalancer
- Lets create an ami with game of life(tomcat based application) and stress tool
sudo apt update
sudo apt install openjdk-8-jdk tomcat8 stress -y
sudo -i
cd /var/lib/tomcat8/webapps
wget https://referenceappkhaja.s3-us-west-2.amazonaws.com/gameoflife.war
- Verify if the application is working or not and create an image

- Now lets create an auto scaling group:
- Auto scaling group gives us capability to automatically scale up (increase vms) or scale down (decrease vms) depending on Virtual Machine(EC2) metrics

- Auto scaling group gives us capability to automatically scale up (increase vms) or scale down (decrease vms) depending on Virtual Machine(EC2) metrics
- Creating an autoscaling creates ec2 instances, but we need to understand
- Capacity:
- Desired Capacity
- min capacity
- max capactity
- Launch Template
- Launch Configuration
- Scaling Policy
- Loadbalancers
- Capacity:
- Lets look at a scenario (multi-region deployment) and try to realize this after we conceptually understand autoscaling & loadbalancing

