How To Create Load Balancer On DigitalOcean

How To Create Load Balancer On DigitalOcean with just a few clicks for this demonstration I’ll use this two back-end droplets that I have already set up both are running a simple Nginx Server with a static page. A load balancer is set up we should be able to access a single IP that will reach both of these droplets and distribute the calls among them switching between both images.

DigitalOcean Load Balancer - Step 1: Networking tab and Clicking Load Balancer

Step 1: Networking tab and Clicking Load Balancer

DigitalOcean Load Balancer - Step 2: Create Load Balancer Giving it a Name

Step 2: As you can see I do not have a load balancer created yet so let’s make one we start by giving it a name.

DigitalOcean Load Balancer - Step 3: Add Droplets

Step 3: The next step is to choose the droplets that will receive the traffic from the DigitalOcean Load Balancer we can type their names here, and it will automatically show the ones that match and it will automatically set the region for that one bounce.

DigitalOcean Load Balancer - Step 4: Forwarding Rules

Step 4: Once that’s done we configure how the traffic will flow from the DigitalOcean Load Balancer choose the droplets we can do that by Adding Forwarding Rules by default. We have a rule that will forward HTTP traffic receive it on the load bouncer port 80 back to your droplets using the same protocol in the same port. Ports all we have to do now is to create its click. Create and wait until the load balancer is the provision we could also configure different algorithms health checks in other advanced adoptions.