Right VPS for the tools

February 24, 2017 322 views
Apache

We are currently having the $40 VPS at Digital Ocean. At our server there a approx. 10 domains which are hosted. Including some Prestashop, Wordpress, Laravel and custom solutions. For now, one more Prestashop solution is about to be added.

We've experienced some lack of performance, and due to that, I thought about upgrading to $80 server (8Gb Ram). What are your thoughts?
Should the server we have now, easily be able to run those sites without any performance issues? Some of the shops are a bit heavy, with a lot of products :)

Regards, Simon

3 Answers

@developerc9740c6fa8b2fbffc

When it comes to performance, there comes a point where throwing hardware at the problem will no longer be a viable solution -- it'll only increase your costs and provide short-term relief.

Since you've tagged Apache in your OP, I'm assuming you're using a LAMP Stack? If so, the best way to boost performance, or attempt to with the hardware you have, is to work on tuning your stack.

Take a look at tweaking the configuration for Apache, PHP, and MySQL. The stock configuration is really only meant to get you up and running. You can run production sites with it, but they may not perform as well as they could or would once you've tuned things a bit.

Also, look in to caching -- Memcached or Redis. WordPress has a number of plugins that support both and Laravel provides out-of-box support via drivers. You can run individual instances for caching which won't effect your primary server, so for example, you could deploy a 1GB Droplet, install either Memcached or Redis, and connect to it remotely.

You could also look in to separating things out - i.e. one server for Apache/PHP, one for MySQL, and one or two for Caching (depending on need).

There's a number of things we could do and there's always plenty of options. Scaling vertically is not always the best resolution, sometimes you need to scale horizontally.

I recommend debugging the performance with tools like xdebug and htop before spending more money.

@developerc9740c6fa8b2fbffc
at first, try to find out the reason for performance falling. and instead of moving to the next plan, i would suggest you to scale your server for maximize performance.

https://www.digitalocean.com/community/tutorials/5-common-server-setups-for-your-web-application

by Mitchell Anicas
When deciding which server architecture to use for your environment, there are many factors to consider, such as performance, scalability, availability, reliability, cost, and ease of management. Here is a list of commonly used server setups, with a short description of each, including pros and cons. Keep in mind that all of the concepts covered here can be used in various combinations with one another, and there is no single, correct configuration.
Have another answer? Share your knowledge.