We are in the process of moving from AWS where we have a highly available system setup using EC2’s auto scaling feature. However, we aren’t using this to change the size of the pool based on resource usage, we are strictly using it to spin up new instances when one of them fails or becomes unresponsive.
Since DO doesn’t have an auto-scale type feature, what are some options to achieve this with DigitalOcean? My first thought was to create a droplet that monitors the others, but then that droplet becomes a single point of failure. Are there any services out there for this that aren’t overkill for what seems like a fairly simple task or established patterns that we could script with the API that don’t create a single point of failure?
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!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
We ended up writing our own solution to somewhat mimic the behavior in EC2. We called it healthcare.js and open-sourced it at https://github.com/goldfire/healthcare.js. Essentially, it uses the DigitalOcean API and tags for discovery, and then uses democracy.js (https://github.com/goldfire/democracy.js) to monitor which servers are running. This allows for a fully distributed self-healing system that will kill/re-build servers based on the passed server configs.
It is sad that DO hasn’t introduced autoscaling of droplets yet. May be check this service - cloudflexer.io which provide autoscaling for DO droplets.
You should give AutoScaler a try https://medium.com/@eraclitux/automatic-server-scaling-healing-digitalocean-edition-a79caa44230a