Software Development Exam  >  Software Development Notes  >  Introduction to Amazon Web Services(AWS)  >  Amazon Web Services - Auto Scaling

Amazon Web Services - Auto Scaling | Introduction to Amazon Web Services(AWS) - Software Development PDF Download

As the name suggests, auto scaling allows you to scale your Amazon EC2 instances up or down automatically as per the instructions set by the user. Parameters like minimum and maximum number of instances are set by the user. Using this, the number of Amazon EC2 instances you’re using increases automatically as the demand rises to maintain the performance, and decreases automatically as the demand decreases to minimize the cost.

Auto Scaling is particularly effective for those applications that fluctuate on hourly, daily, or weekly usage. Auto Scaling is enabled by Amazon CloudWatch and is available at no extra cost. AWS CloudWatch can be used to measure CPU utilization, network traffic, etc.

Elastic Load Balancing

Elastic Load Balancing (ELB) automatically distributes incoming request traffic across multiple Amazon EC2 instances and results in achieving higher fault tolerance. It detects unfit instances and automatically reroutes traffic to fit instances until the unfit instances have been restored in a round-robin manner. However, if we need more complex routing algorithms, then choose other services like Amazon Route53.

ELB consists of the following three components.

Load Balancer

This includes monitoring and handling the requests incoming through the Internet/intranet and distributes them to EC2 instances registered with it.

Control Service

This includes automatically scaling of handling capacity in response to incoming traffic by adding and removing load balancers as required. It also performs fitness check of instances.

SSL Termination

ELB provides SSL termination that saves precious CPU cycles, encoding and decoding SSL within your EC2 instances attached to the ELB. An X.509 certificate is required to be configured within the ELB. This SSL connection in the EC2 instance is optional, we can also terminate it.

Features of ELB

Following are the most prominent features of ELB −

  • ELS is designed to handle unlimited requests per second with gradually increasing load pattern.

  • We can configure EC2 instances and load balancers to accept traffic.

  • We can add/remove load balancers as per requirement without affecting the overall flow of information.

  • It is not designed to handle sudden increase in requests like online exams, online trading, etc.

  • Customers can enable Elastic Load Balancing within a single Availability Zone or across multiple zones for even more consistent application performance.

How to Create Load Balancers?

Step 1 − Go to Amazon EC2 console using this link − https://console.aws.amazon.com/ec2/.

Step 2 − Select your load balancer region from the region menu on the right side.

Step 3 − Select Load Balancers from the navigation pane and choose Create Load Balancer option. A pop-up window will open and we need to provide the required details.

Step 4 − In load Balancer name box: Enter name of your load balancer.

Step 5 − In create LB inside box: Select the same network which you have selected for instances.

Step 6 − Select Enable advanced VPC configuration, if selected default VPC.

Load Balancer Name

Step 7 − Click the Add button and a new pop-up will appear to select subnets from the list of available subnets as shown in the following screenshot. Select only one subnet per availability zone. This window will not appear if we do not select Enable advanced VPC configuration.

Available Subnets

Step 8 − Choose Next; a pop-up window will open. After selecting a VPC as your network, assign security groups to Load Balancers.

Step 9 − Follow the instructions to assign security groups to load balancers and click Next.

Step 10 − A new pop-up will open having health checkup configuration details with default values. Values can be set on our own, however these are optional. Click on Next: Add EC2 Instances.

Ping Protocol

Step 11 − A pop-up window will open having information about instances like registered instances, add instances to load balancers by selecting ADD EC2 Instance option and fill the information required. Click Add Tags.

Step 12 − Adding tags to your load balancer is optional. To add tags click the Add Tags Page and fill the details such as key, value to the tag. Then choose Create Tag option. Click Review and Create button.

A review page opens on which we can verify the setting. We can even change the settings by choosing the edit link.

Step 13 − Click Create to create your load balancer and then click the Close button.

How to Delete a Load Balancer?

Step 1 − Go to Amazon EC2 console using this link − https://console.aws.amazon.com/ec2/.

Step 2 − Choose Load Balancers option from the navigation pane.

Step 3 − Select Load balancer and click the Action button.

Step 4 − Click the Delete button. An alert window will appear, click the Yes, Delete button.

The document Amazon Web Services - Auto Scaling | Introduction to Amazon Web Services(AWS) - Software Development is a part of the Software Development Course Introduction to Amazon Web Services(AWS).
All you need of Software Development at this link: Software Development
24 docs

Top Courses for Software Development

FAQs on Amazon Web Services - Auto Scaling - Introduction to Amazon Web Services(AWS) - Software Development

1. What is Amazon Web Services (AWS) Auto Scaling?
Ans. Amazon Web Services (AWS) Auto Scaling is a service that automatically adjusts the capacity of your AWS resources based on the demand. It helps you maintain availability and optimize cost by automatically scaling your applications in response to changing workload patterns.
2. How does AWS Auto Scaling work?
Ans. AWS Auto Scaling works by using scaling policies that define the conditions for scaling your resources. These policies can be based on metrics such as CPU utilization, network traffic, or custom metrics. When the defined thresholds are met, AWS Auto Scaling automatically adds or removes resources to maintain optimal performance and cost efficiency.
3. What types of AWS resources can be scaled using AWS Auto Scaling?
Ans. AWS Auto Scaling can be used to scale various types of AWS resources, including Amazon EC2 instances, Amazon ECS tasks, Amazon DynamoDB tables, and Amazon Aurora replicas. It allows you to scale both compute and database resources to handle varying workloads.
4. Can I use AWS Auto Scaling with my existing applications?
Ans. Yes, you can use AWS Auto Scaling with your existing applications. It is designed to work with a wide range of applications and can be integrated into your existing infrastructure. By using the AWS Management Console or APIs, you can easily configure and manage auto scaling for your resources.
5. How does AWS Auto Scaling help in optimizing costs?
Ans. AWS Auto Scaling helps in optimizing costs by automatically adjusting the capacity of your resources based on the demand. It ensures that you have enough resources to handle peak workloads while avoiding over-provisioning during low-demand periods. By dynamically scaling your resources, you only pay for what you actually use, leading to cost savings and improved efficiency.
24 docs
Download as PDF
Explore Courses for Software Development exam

Top Courses for Software Development

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Summary

,

past year papers

,

Important questions

,

Viva Questions

,

Amazon Web Services - Auto Scaling | Introduction to Amazon Web Services(AWS) - Software Development

,

Sample Paper

,

MCQs

,

Semester Notes

,

ppt

,

Amazon Web Services - Auto Scaling | Introduction to Amazon Web Services(AWS) - Software Development

,

Extra Questions

,

Free

,

Objective type Questions

,

practice quizzes

,

shortcuts and tricks

,

mock tests for examination

,

pdf

,

video lectures

,

study material

,

Exam

,

Amazon Web Services - Auto Scaling | Introduction to Amazon Web Services(AWS) - Software Development

,

Previous Year Questions with Solutions

;