Load Balancing with auto scaling up and down

May 27, 2015 2.4k views
Load Balancing DigitalOcean

I am interested to know whether it is possible on digital ocean to do a setup where just the load balancer and the one node runs and only if the one node is experiencing a high demand then the other node is started up.

Basically so there is not a need to pay for both nodes all the time when one will be fine, but then when its gets busy the other one helps out.

Not sure if this is possible

Any advice will be appreciated.

2 Answers

This tutorial might be what you are looking for, this way your not paying for unused resources.

In this tutorial, we will demonstrate how to use DigitalOcean API to horizontally scale your server setup. To do this, we will use **DOProxy**, a relatively simple Ruby script that, once configured, provides a command line interface to scale your HTTP application server tier up or down. The primary purpose of this tutorial is to teach the minimally required concepts necessary to programmatically scale your DigitalOcean server architecture through the API.

you can simply use DO API.
we have some example configs here:

the idea is to check the load on master droplet and start new droplet if load is too high.
configure it, rsync files and inject ip into load balancer.

Have another answer? Share your knowledge.