Report this

What is the reason for this report?

Auto Scaling - possible with DO? And what are your suggestions on what/how?

Posted on June 26, 2014

I have a centos droplet here on DO, 8GB, with a Wordpress site on it.

I’m doing about 10,000 hits a day now. The server has handled spikes up to 16,000/day with no trouble.

But were publishing more and more and I’m concerned about getting a sudden surge of traffic. I want to be able to handle the digg effect as best as I can with little to no downtime.

So I’m looking at auto scaling. I see some hosts offer it through a control panel, but DO doesn’t seem to.

But I did find this:

https://www.digitalocean.com/community/tutorials/how-to-scale-your-infrastructure-with-digitalocean

It makes it look like I could scale up RAM, which is what I think would need during a crush… I think. Maybe CPU too? (Anyway to figure that out ahead of time?)

But I don’t see anything related to the pricing for scaling up specific resources like this (I thought all DO offered was the set plans, didn’t realize individual resources were available like this).

Or… would I be better off setting it up to scale up another droplet and load balancing (which I know little about)? And is that instant, or does it take a few minutes to scale up?

hmmm. I guess what I need is some suggestions on the best way to handle this issue. I’m not sure what the best solution is or if DO even has a good solution.

Appreciate any thoughts/ideas on this -

Chris



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.

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.

You can use the control panel to scale up your RAM and CPU using the “Fast Resize” option. To use it, you’ll need to power down your droplet and navigate to Resize in the DigitalOcean control panel. Then select the new size you want to use. There is only about one minute of downtime. No changes are made to disk size. This uses the same pricing as creating a new droplet with that amount of RAM.

If you are considering scripting an automated solution, I’d encourage you to take a look at version 2 of the API which was just released as a public beta. It should be easier to work with in a number of way, and using it will ensure that your scripts will continue to work in the future.

If you’re interested in setting up Wordpress with multiple frontend app servers behind a load balancer, we have an article on it that should point you in the right direction. It’s on Ubuntu rather than CentOS, but it should give you a good idea of how you could set something like that up.

Thank you, I’ll take a look at both those pages.

Yeh, in a crush of traffic, a minute sounds like a long downtime, that could be a hundred dollars of lost revenue in that one minute…

Chris

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.