Managing and maintaining a load balancer can often be a difficult task.

What are the features of the DigitalOcean Load Balancer?

A lot of options are available that can influence how well the load balancer works and performs.

synology nas

Load balancing does not work over different datacenter regions, so all Droplets must be located together.

Next, we need to define the resources to add to the load balancer.

After adding resources, it’s necessary to create all the traffic forwarding rules needed.

Tuya Wi-Fi IR Blaster on a wooden desk.

In this example, we are just using a standard web server and non-SSL traffic.

Therefore, all we need is a simple rule to forward to port 80.

Finally, choose a name for the load balancer and select Create Load Balancer.

The word Windows 11 with a map pin on the right and the default windows 11 wallpaper as background.

To see this working, first navigate to each individual Droplet’s IP.

As you might see, each server shows the correct text that we would expect.

Backend Connection Health

Health connection checks run constantly depending on the schedule set.

Article image

Upon refreshing the page, all you would get is the page from test server 1.

Choose region that Load Balancer will be created in and co-located with droplets to load balance

Define resources to add to load balancer

Create all traffic forwarding rules needed

Advanced settings

Choose a name for load balancer and click on Create Load Balancer

Navigate to see assigned resources and their status

Navigate to each individual Droplet’s IP.

Navigate to each individual Droplet’s IP.

Go to IP address of the load balancer itself. After several reloads, both pages will come up on same IP address as connections are routed between associated Droplets.

Go to IP address of the load balancer itself. After several reloads, both pages will come up on same IP address as connections are routed between associated Droplets.

After turning off lc-test-02, load-balancer stopped directing connections there.