Load Balancer Quickstart

To follow along, you will need a DigitalOcean account. If you don’t already have one, you can register on the sign up page.

Create a Load Balancer

  1. From the control panel, click Create in the top right, and then Load Balancers.
  2. Choose a name, datacenter region, and forwarding rules. Make sure you choose the same datacenter region as any existing Droplets you want use in the backend.
  3. Click Create Load Balancer. This will take you from the main page to the root of your new Load Balancer.

Add and Remove Droplets

All backend Droplets must be in the same region as the Load Balancer.

  1. From the root of your Load Balancer, click Choose Droplets.
  2. You can choose the Droplets for the backend in two ways: manually or by using a tag. In the modal, select the Droplets or tag you want to use, then click Add Droplet.

The same Choose Droplets modal also lets you remove Droplets from the backend pool and change or remove the tag, if you’re using one.

Use SSL Certificates

Existing certificates, both Let’s Encrypt and custom, appear in the Certificate dropdown list. You can assign any existing certificates in the HTTPS and HTTP/2 forwarding rules.

To delete an existing certificate:

  1. Open your User menu.
  2. Click Settings.
  3. Click Security.
  4. In the Certificates section, open the More menu.
  5. Click Delete.

Note that when a certificate is in use, it cannot be deleted. 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 a Load Balancer

  1. From the root of your Load Balancer, click the Settings tab.
  2. Click the red Destroy button in the bottom right, then the red Confirm button.

The Droplets associated with your Load Balancer will stop receiving distributed traffic, but the Droplets themselves will not be destroyed.