Does the load balancer poll droplet tags?

Trying out the newly released Load Balancer service it seemed like a nice thing to add droplets as targets using tags. I created a lb tag on the relevant droplets and everything worked perfectly.

As doctl and the python library isn’t yet updated with support for the Load Balancer my first thought was that to remove a droplet from the pool I can just remove it’s tag. This doesn’t seem to work, removing the tag does not affect the membership in the Load Balancer pool it seems.

The question is, is this a bug or is it not meant to work? I’m fully aware that it’s a bit hackish, just curious.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Andrew SB
DigitalOcean Employee
DigitalOcean Employee badge
February 15, 2017
Accepted Answer

Yes, if you configure a Load Balancer to use a Droplet tag, removing the tag from a Droplet will remove it from the backend pool for the Load Balancer. Adding the tag to a new Droplet will add it to the pool. It’s not hackish. In fact, it’s intended to be a first class way of using a Load Balancer. We’ll likely be using this same pattern for a number of new features that are planned this year. Especially for people with quite a few Droplets, it can make managing them much simpler.

I was just able to successfully remove and re-add a Droplet from a Load Balancer by removing and re-adding a tag. Please open a ticket with the support team so they can take a closer look into what is going wrong in your case. You can do that directly from the control panel:

It seems normal to me. As I can see, the load balancer only checks for new droplets and add its to the load balancer system, it’s not able to remove droplets from the system.

This may be a good thing for suggestion for the team.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel