Introduction to Elastic Load Balancing

In this lab, I will be creating Elastic Load Balancing. This is where traffic is spread out over multiple instances.

Creating an Elastic Load Balancer

This is done is the EC2 Service.

ec2.PNG

I then go into the Load Balancers tab and select create new load balancer, I select classic load balancer.

load.PNG

I encountered an issue where I have to select a group for load balancing which the lab already made. after some research, I’m confident the only port I need to add is Port 443.

After some playing around I got it to work.

lab.PNG

Issue!

My assumptions got me into a bit of a mess because I assumed that I would need to be using HTTPS which then requires an SSL certificate and since I do not have one I was stumped.

I then actually stopped and read each prompt carefully and I found that the prompt that I thought was telling me the connection needed to be secured was just a suggestion, not a must.

The reason I had done this was that the lab already had a group made for this and I was trying to see what they would have added, And naturally, I thought of opening ports

if.PNG

So this is how my ports are now.

ports.PNG

I now select my instance to add the load balance too, I add it to my already running webserver I created.

load.PNG

I just review my choices to make sure it adds up to the lab.

Load1.PNG

It’s alive!

created.PNG

After the load balancer is created you can check it by using the DNS link in the description.

I am now faced with an issue where I can not connect to the Load Balance, I suspect it is a port issue. I tried pinging it with not luck.

Success!

I found the issue! I changed the source address to 0.0.0.0/0 and allow from anywhere and it works!

I don’t know how I missed that but I stepped back, and when thought logically about what would be blocking me from connecting.

website.PNG

Post Author: Techdox

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.