Introduction :
In this tutorial we are going to configure Application Load Balancer with the following task.
Application Load Blancer distributes incoming application traffic across multiple targates such as ec2 instance in multiple availability zone.it support HTTP and HTTPS protocol.
Task 1 : Create 2 EC2 instance with different availability zone.
Task 2 : Configure Application Load blancer
Task 1 : Create 2 EC2 instance with different availability zone.
Step 1) Login to the AWS Console
Step 2) Switch to the EC2 section
Step 3) Create 2 EC2 instance in different availability zone
Step 1) Configure Load Balancer
Task 2 : Configure Application Load blancer
1) On the navigation pane, under LOAD BALANCING, choose Load Balancers and Select "Application Load blancer"
2) To configure your load balancer, provide a name, select a scheme, and select a network.
Following are Default Configuration:-
- Name : MyLoadBlancer
- Scheme : internet-facing
- ip type : ipv4
An Internet-facing load balancer routes requests from clients over the Internet to targets.
An internal load balancer routes requests from clients to targets using private IP addresses.
3) Add Listener , A listener is a process that checks for connection requests, using the protocol and port that you configured.
In my case I am using only HTTP protocol.
- If you have an SSL than Add HTTP and HTTPS protocol
- If you don't have an SSL than Add HTTP protocol only
4) Availability Zones
Specify the Availability Zones to enable for your load balancer. The load balancer routes traffic to the targets in these Availability Zones only. You can specify only one subnet per Availability Zone. You must specify subnets from at least two Availability Zones to increase the availability of your load balancer.
- In my case I am selecting all AZ.
5) Add-on services
Additional AWS services can be integrated with this load balancer at launch when you enable them below.
- In my case I am choosing as default.
6) Tags
Apply tags to your load balancer to help organize and identify them.
Step 2) Configure Security Settings
Improve your load balancer’s security. Your load balancer is not using any secure listener.
- If you are not using HTTPS protocol , and click to next
Step 3) Configure Security Groups
Create a new security group or Select an existing security group
Step 4) Configure Routing
1) Target group
Your load balancer routes requests to the targets in this target group using the protocol and port that you specify here.
2) Health checks
3) Advanced health check settings
4) Click to next button :Register Targets
Step 5) Register Targets
Register targets with your target group. If you register a target in an enabled Availability Zone, the load balancer starts routing requests to the targets.
Select one or more instances than click on "Add to register" button
1) Click to next button :Review
Step 6) Review
Please review the load balancer details before creating
Note :- Wait few minutes to be up
Application Load Blancer will take few minutes for this to be Active status.
Step 7) Verify Load blancer working by following command.
Select Load Blancer --> Description --> Copy DNS Name
- paste DNS name in web browser
No comments:
Post a Comment
testing