Question

Load Balancing with auto scaling up and down

Posted May 27, 2015 6.6k views
DigitalOceanLoad Balancing

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.

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.

×
2 answers

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

you can simply use DO API.
we have some example configs here:
https://github.com/magenx/Digitalocean-Auto-Scaling-Droplets-Auto-Scale-DIY

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.

Submit an Answer