Load Balancing with auto scaling up and down

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.

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.

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