Lab 12:To Configure Amazon Elastic Load Balancer
Lab 12:To Configure Amazon Elastic Load Balancer
Objective: To configure Elastic load balancer in AWS
Topology:
Pre-Requites:
User sholud have AWS account ,or IAM user with EC2 Full access
Task:
Launch two instance in two seperate Availability Zone
Configure httpd (Apache)Webserver in Each instances
verify webserver from browser
Configure Elastic Load Balancer
verify webserver through ELB
1.Launch two install with apache webserver in two separate Availability Zone.
For Example us-west-2a and us-west-2c
Note
[To configure webserver refer lab-webserver configuration]
2.Check website are Running
open Browser
provided public ip of both instances
verify both website are running
verify public ip of both instance
verify
output of webserver one
verify
output of webserver two
3.To configure Elastic Load Balancer
Open the AWS Console
on EC2 Dashboard panel
Expanding "Load Balancing"
Select "Load Balancing"
click on "Create Elastic Load Balancer" button
on "welcome to elastic load balancing "page
Select "Application Load Balancing"
Click Continue button
on Configure "Load Balancer" page
provide
Name ------------------>ELBsales
Schema---------------->facing
Drag Down
Under Listeners,provide
Load Balancer protocol---------->HTTP
Load Balancer port as------------>80
Drag Down
under Availiability Zones
Select all zones
Click on " Next :Configure Security settings" button
On "Configure Security settings",page
Leave values as default
Click on" Next :Configure Security groups"button
On " Next :Configure Security groups",page
under Assign a security group
select "Create a new security group"
Click on Configure routing button
On"Configure Routing"page give following values
Name----------->WEBSITES
Leave remaining values as default
click"Next :Register Target"button
on Register Targets page ,Drag Down
Select the instance which you want to put under load balancer
click on "Add to register" button ,Drag Down
Verify that running instances are registered
click on "Next :Review "button
verify
check the summary
Drag Down
click on "Create "button
verify
Load balancer successfully created
4.Verification
To verify website are coming through load balancer
Go to Ec2 dashboard panel
Expanding Load Balancing
select Load Balancer
Copy load balancer DNS Name
In Browser type load balancer Dns name
verify website by frequently refeshing browser(press F5)
on Each Refresh one by one,website 1 and webserver 2 will be displayed
If you get this output,Configuration your ELB configuration your ELB configuration is successfully...





















Nice blog post on aws elastic load balancer.
ReplyDeleteAWS Training in Chennai