gianarb / orbiter

Orbiter is an opensource docker swarm autoscaler
Apache License 2.0
501 stars 54 forks source link

Create autoscaling group in Digitalocean based on tags #6

Closed gianarb closed 7 years ago

gianarb commented 7 years ago

This post explains how to use tags.

At the moment the Digitalocean implementation is very simple. We are adding and deleting servers without to care about them. It can be any kind of server in status running.

we need to use tags to mark as "manage by orbiter" every server that we start and remove only the servers part of this groups. Tags can be something like "orbiter_autoscaling=nameoftheautoscaler" in this way we know that it's managed by us and we are not going to delete other instances.

gianarb commented 7 years ago

I forget that we have already a check based on droplet.Name and serviceName.

If the name of the policy is not contained in the name of the droplet it's not going to be managed by orbiter.