Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
29 views
in Information Technology by (176k points)
How do you configure auto-scaling in AWS?

Please log in or register to answer this question.

1 Answer

+1 vote
by (176k points)

Auto Scaling helps you ensure that you have the correct number of Amazon EC2 instances available to handle the load for your application.

Steps to configure auto-scaling:

  1. Create a Launch Configuration:
    aws autoscaling create-launch-configuration --launch-configuration-name my-launch-config --image-id ami-0abcdef1234567890 --instance-type t2.micro --key-name MyKeyPair --security-groups sg-abcdef123

2. Create an Auto Scaling Group:

aws autoscaling create-auto-scaling-group --auto-scaling-group-name my-asg --launch-configuration-name my-launch-config --min-size 1 --max-size 5 --desired-capacity 2 --vpc-zone-identifier subnet-6e7f829e

3. Attach a scaling policy:

aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name scale-out --scaling-adjustment 1 --adjustment-type ChangeInCapacity

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...