Does the load balancer poll droplet tags?

February 15, 2017 165 views
Load Balancing Ubuntu 16.04

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.

2 Answers
asb MOD 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.

  • Can't hurt to suggest it, but it's probably not a necessary feature to have once the various client libraries have caught up with the new API.

    • I never used the APIs, not experienced that much with programming skills, but it may help you to just wait for the new APIs. I don't know ^^

Have another answer? Share your knowledge.