I would like to share my situation because maybe helpful to others, and I need some advice.
I administer a VPS with some web servers and high traffic.
The systems specs are x2 Xeon E2620 with 2 cores, 18Gb ram and 800Gb HDD.
The first step when I got full access was check the server configuration.
The system holds:
- Apache2
- php-cgi 5.3.3 (prefork)
- MySQL 5.1
- Prestashop (1.4 - 1.6)
- APC
At first sight (later confirmed), the server settings and the system architecture is not optimal.
The server is busy almost all time and web access very slow.
So, I think I have a couple of alternatives to circumvent this situation because the traffic only grows.
- Optimize the current settings could be only a temporary solution.
It means tuning Apache, preforks, MySQL, uninstalling unneeded software... etc.
OR
- Change the system architecture thinking in scalability. ( better temp. solution before invest more $$ scaling horizontally)
My idea, and my doubt is what do you recommend for scale.
nginx, php-fpm, varnish, APC OR nginx working together with Apache.
I think first is better because they all still runs in the same machine.
Thanks.