By chris139993
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.