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
  • 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
  • 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

Leave a ReplyCancel reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%