Scale and Load Balance Your
Architecture.
Auto scaling deals with the load of traffic by adding or
removing instances. In AWS Directing request from different sources to
different Instances to ensure that all instances work equally as possible it
known as elastic load balancing.
A load Balancer obtains incoming traffic from various
clients and routs them to the registered targets. It also ensures the health of
its registered targets. When an unhealthy target detected by the load balancer,
it stops routing traffic to the target and resumes routing traffic to the
target when the target is healthy back again.
Types of load balancers supports Elastic load balancer:
1.
Application Load balancer
2.
Network load Balancer
3.
Classic Load Balancer
In this activity we are building an infrastructure to
balance the traffic for a particular web page.
Task 1: Create an AMI for Auto Scaling:
In this task we will be creating an instance via AMI with
identical content to use AMI auto scaling group.
Make sure that the web server is up and running. This web
server is created in before labs. Select web server and run it.
Task 2: Create a Load Balancer:
Next we will create the load balanced that can balance the
incoming traffic. We are going to use the application level load balance.
Task 3:
Create a Launch Configuration and an Auto Scaling Group:
Task 4:
Verify the load balance is working before launch:
There are two Lab
instance targets listed below.
Task 5:
Test auto scaling:
Once you run the web, you can see the alarm status is ok.
And the other instance is alarm is not triggered. When you keep load the web
page, automatically the load is increase. When its increase, the instance will
change. So the status of the instance will be change according to the load.
When the load is scaled, it will balance the load in between the instances.
Task 6: Terminate Web Server 1:
Benefits of AWS Load
Balancing:
1.
Highly available
2.
Secure
3.
Elastic
4.
Flexible
5.
Robust monitoring & auditing
6.
Hybrid load balancing
Use Cases:
·
Achieve better fault tolerance for your
applications
·
Automatically Load balance your containerized
applications.
·
Automatically Scale your applications
·
Hybrid load balancing with Elastic Load Balancing.
·
Invoking Lamba functions HTTPs.
References:
Elastic Load
Balancing—Amazon Web Services. Amazon Web Services, Inc. Retrieved May
21, 2020, from https://aws.amazon.com/elasticloadbalancing/
How Elastic Load
Balancing Works—Elastic Load Balancing.2020. Retrieved May 21, 2020, from https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html

















Comments
Post a Comment