AWS Classroom Series – 04/Dec/2020

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 Preview
  • 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 Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview
  • 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
  • Lets look at a scenario (multi-region deployment) and try to realize this after we conceptually understand autoscaling & loadbalancing Preview

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin