Create a Network Load Balancer
Hello Everyone
Welcome to CloudAffaire and this is Debjeet
In the last blog post, we have discussed Elastic Load Balancer.
https://cloudaffaire.com/elastic-load-balancer/
In this blog post, we are going to create a Network Load Balancer for Apache web server.
Below is the prerequisite for this demo
One active AWS account
One running EC2 Amazon Linux instance with the LAMP stack
We have already configured one Linux instance with Apache web server. You can configure yours by following below link
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
Note: This demo is for an introductory purpose only. Currently, we are focusing on EC2 service and its components, we will cover Elastic Load Balancer in details in its separate blog series.
Create a Network Load Balancer
Step 1: Login to AWS console and click EC2 under compute
Step 2: Navigate to ‘Load Balancers’ located under LOAD BALANCING. Click ‘Create Load Balancer’.
Note: Make sure the region of the load balancer is the same as your instance region.
Step 3: Select Network Load Balancer and click ‘Create’
Step 4: Provide a load balancer name and scheme and configure the listener.
Note: Our EC2 instance has port 80 open for http traffic to Apache web server. Hence we are configuring the listener to listen to port 80.
Next, configure Availability Zones for your Load Balancer. Click ‘Next: Configure Routing’
Step 4: Configure target group for your load balancer and click ‘Next: Register Targets’.
Step 5: Select instance and click ‘Add to registered’
Once the instance is selected, click ‘Next: Review’. Review the configuration and click ‘Create’
Our new Network Load Balancer has been successfully created. Click ‘Close’
Test your Network Load Balancer
To test the Network Load Balancer copy DNS under the description of Load Balancer and paste to your favorite web browser
The http request has been routed to our Apache web server through network load balancer.
Hope you have enjoyed this blog post. In the next blog, we are going to discuss Launch Configurations.