How to create a digitalocean load balancer [Steps] 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.
Create digitalocean load balancer [steps]
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.
1.networking tab and clicking Digitalocean Load Balancer
we start by going to the networking tab and clicking load balancers
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.
The next step is to choose the droplets that will receive the traffic from the 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.
Once that’s done we configure how the traffic will flow from the 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.