Load Balancer Quickstart
Validated on 7 Dec 2020 •
Posted on 19 Jun 2018
DigitalOcean Load Balancers are a fully-managed, highly available network load balancing service. Load balancers distribute traffic to groups of Droplets, which decouples the overall health of a backend service from the health of a single server to ensure that your services stay online.
Create Load Balancers
- From the control panel, click Create in the top right, and then Load Balancers.
- Choose a load balancer size, name, datacenter region, and forwarding rules. Make sure you choose the same datacenter region as any existing Droplets you want use in the backend.
- Click Create Load Balancer. This takes you to the detail page of the new load balancer.
Add and Remove Droplets
All backend Droplets must be in the same region as the load balancer.
To add Droplets:
- From the load balancer’s detail page, click Choose Droplets.
- Select the Droplets or tag you want to use, then click Add Droplets. You can choose the Droplets for the backend in two ways: manually or by using a tag.
To remove Droplets:
- From the load balancer’s detail page, click More next to the Droplet you’d like to remove.
- In the More drop-down, click Remove.
Use SSL Certificates
Existing certificates, both Let’s Encrypt and custom, appear in the Certificate dropdown list when creating your load balancer and in the Forwarding Rules section of the Settings tab after creation. You can assign any existing certificates in the HTTPS and HTTP/2 forwarding rules.
To delete an existing certificate:
- Open the Security menu.
- In the Certificates section, open the More menu of the certificate you’d like to delete.
- Click Delete and confirm the deletion.
You cannot delete certificates that are still in use. You can delete the forwarding rule or edit it so that it no longer uses the certificate, then return to the Certificates tab and delete it.
Delete Load Balancers
- From load balancer’s detail page, click the Settings tab.
- Click the red Destroy button, then the red Confirm button.
The Droplets associated with your load balancer stop receiving distributed traffic, but the Droplets themselves are not destroyed.