Which size of droplet should i use for my web-site?

  • Posted January 23, 2014

Hello there,

I have a question for you, actually i need help.

I have a web-site, which had 61.360 unique visitors and 1.307.283 page views in December 2013. For this web-site i have been using second plan of droplet on DigitalOcean which is 1 GB ram/1 cpu. But in january my hits increased %10 rate, so my web-site slowed down little bit.

Here is my question, can i solve that problem some server-side coding or do i have to increase/resize my droplet’s size.

Sorry for bad english, thanks for understanding.


Submit an 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.

Hello, all

Choosing the right Droplet plan depends on your workload. An oversized Droplet would underuse its resources and cost more, but an undersized Droplet running at full CPU or memory would suffer from degraded performance or errors.

You can also resize a Droplet to a larger plan after creation, including resizing to a larger Droplet plan of a different kind. For example, you can resize from a Basic Droplet plan to a larger CPU-Optimized Droplet plan. See the Droplet pricing page for a full list of plans and prices.

You can always check our tutorial on Choosing the Right Droplet Plan

Hope that this helps! Regards, Alex

Looks like most of CPU usage is from MySQL. From this point you can consider analyzing which queries are taking too much time to run. Also, you can migrate just MySQL to another, larger server (you will get more CPU cores for the price).

Thank you so much.

Looks like there’s quite a bit of load on the CPU. Try upgrading to a plan with more CPUs—does that help?

I run top command from shell. Here’s the i got; <br> <br>[root@s ~]# top <br>top - 12:45:50 up 1 day, 5:31, 1 user, load average: 5.34, 5.40, 5.58 <br>Mem: 1020388k total, 880792k used, 139596k free, 61336k buffers <br>Swap: 0k total, 0k used, 0k free, 413648k cached <br> <br> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND <br>20437 mysql 20 0 1048m 189m 7232 S 73.2 19.1 704:47.40 mysqld <br> 6701 apache 20 0 510m 20m 9236 S 1.3 2.0 0:00.26 httpd <br> 1139 admin 20 0 509m 21m 10m S 1.0 2.1 0:02.30 httpd <br> 4008 apache 20 0 508m 20m 10m S 1.0 2.0 0:01.31 httpd <br>

I would try first inspect your Droplet’s CPU and memory usage. Try using htop - an interactive process viewer for Linux. <br> <br>So you can find out if you’re running out of memory (causing swap) or too much CPU processing (and what is using that resources). <br> <br>