Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
137 views18 pages

Cloud Scaling & Load Balancing Guide

This for elb and route53

Uploaded by

Krrishna Chauhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
137 views18 pages

Cloud Scaling & Load Balancing Guide

This for elb and route53

Uploaded by

Krrishna Chauhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Module 4: ELB AND ROUTE 53

Assignment Submitted By:-Hitesh Chauhan


Course Offered: Advanced Cloud Computing And Devops
Problem Statement:
You work for XYZ Corporation which uses on-premise solutions and a limited number of systems.
With the increase in requests in their application, the load also increases. So, to handle the load
the corporation must buy more systems almost on a regular basis. Realizing the need to cut down
the expenses on systems, they decided to move their infrastructure to AWS.
Tasks To Be Performed:
1. Manage the scaling requirements of the company by:
a. Deploying multiple compute resources on the cloud as soon as the load increases and the CPU
utilization exceeds 80%
b. Removing the resources when the CPU utilization goes under 60%
2. Create a load balancer to distribute the load between compute resources.
3. Route the traffic to the company’s domain

Answer

Login to AWS Console and go to the EC2 dashboard.

Create a Key Pair for accessing the EC2 instances.

Create Security Groups


Go to the Security Groups  Create Security Group (cloudwatch agent) and allow port 80 and 22.
Now Security Group is created successfully.

EC2 Dashboard  Load Balancing  Target Groups  Create Target Group

Choose target Type


Click Next
Click Create Target Group

Now Target group has been created successfully

Load Balancer
EC2 Dashboard  Load Balancing  Load Balancer  Create Load Balancer
Select the Target group which we have created
Create Load Balancer
ALB creation will take a few minutes

Create Launch Template


EC2 Dashboard  Instances  Launch Templates

• Select OS as Amazon Linux


• Instance Type is t2.micro (Free Tier Eligible)
• Select the Key Pair
• Select the Security Group as WEBSG
In Advanced options provide the user data script to make your website ready
Create Auto Scaling Groups
EC2 Dashboard  Auto Scaling  Create Auto Scaling Groups

Provide the Auto Scaling Group name


Click Next.
Select the VPC Settings and Subnets
Click NEXT

Load Balancing options Attach to an existing load balancer.


Choose from your load balancer target groups (Since we already created one)

Click Next
Configure Scaling Policies as described in questions, when CPU 80% utilized it should create another EC2
instance

Click Next

Click Next

Create ASG
Access the Website using ALB URL.

The ASG is working fine as expected

Map the Company Domain

Go to Route 53

Create a hosted zone ex: (hiteshchauhan.xyz)

You might also like