How does no. of cores and memory affect a WordPress blog?

July 17, 2015 3.6k views
WordPress Apache CentOS

If you have text based WordPress blog running on LAMP with let's say each post contains a greeting picture, there a few plugins, and a single user.

  1. How does number of processor cores and memory affects your install?
  2. How many visitors at a time can a $5 droplet handle?
  3. Is there an easier way for me to assess how many services I could run on my droplet?
2 comments
  • I should add, a $5 Droplet does not run well with WordPress, which is why they disabled the one click install WP for the $5 plan.

  • @jonaharagon

    I don't know how, but your numbers of 80 concurrent connections to a 512MB VPS are exceptionally outstanding! Best i could achieve was 130 after further tweaking and testing!

    If we go by your numbers you woudl be able to handle 80X4=320 concurrent connections on a 2GB VPS! I'm not sure how many Linux ninjas can achieve this!

3 Answers
  1. It simply makes response times faster or slower. With small sites you probably won't need over a $10/month Droplet, but as they grow you may need to expand, in order to cope with users (see 2)

  2. If you're expecting a lot of traffic... not so many people. It depends on the bandwidth, but this test should give you a feel for it. Loader.io simulates a lot of users and bandwidth at a single time, and a $5 droplet lasted 1 minute with 82 successful clients (simulated). Of course, this was a fairly larger blog tested than what you describe, but if you're expecting traffic in the upper hundreds/thousands you may need a bigger one. For personal and small-scale blogs however, a $5 Droplet should do just fine.
    Of course, this depends on the plugins you have on WordPress as well, if you have caching plugins (WordFence works quite well) and maybe Cloudflare, your site can last much longer.

  3. For just simply load testing webpage purposes, you could try loader.io and see how long your services last.

  • @jonaharagon

    When you say 82 successful clients, do you mean a constant load of 82 clients throughout 1min test or 82 clients evenly distributed over a period of 1min?

  • @saurabh Constant load. DigitalOcean would definitely be able to handle it if it was evenly distributed, from my experience.

  • @jonaharagon Are you sure? Let me reframe it. Consider use cases below:

    Use Case 1 - Constant Load (Maintain Client Load):
    At any given point of time, 80 simultaneous connections are active on the server.

    Use Case 2 - Distributed Load (Clients Per Test):
    At any given point of time, 80/60 = 1.33 simultaneous connections are active on the server.

    So you tested 512MB droplet with Use Case 1 or 2?

    PS: My testing revealed that a 2GB droplet can sustain upto 80 clients when seen under Use Case 1. And when seen under Use Case 2, the count goes to 4800 clients.

  • @saurabh That would mean your testing confirms my findings, correct?

    Because yes, it was "Use Case 1", which is what I meant when I said constant load of ~80 clients.

Have another answer? Share your knowledge.