Question

How to setup auto-healing droplets?

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?


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.

Accepted Answer

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.

Try DigitalOcean for free

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

Sign up

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.