Matt's tattoo article last week caused us to hit the ROK's server capacity and so it's time to upgrade the hardware.
The software has already been optimized. Here's the current setup:
Nginx + PHP-FPM + APC PHP + Pagespeed + Varnish + Wordpress + W3 Total Cache
The weak point is W3 Total Cache, which is bulky compared to the HyperCache plugin, but it has an Amazon cloud CDN option that I can turn on in times of heavy usage to take pressure off the server. It's like a power boost.
With the CDN turned on, our dual processor server (16 cpus) can handle about 18 page views per second before the server load becomes too high. With the CDN turned off (i.e. the server processing and displaying everything), we can do about 10 page views a second.
I want to add a second server to our setup. How should I set up that server to maximize our capacity without breaking the bank?
Option 1: Use the second server as a CDN server. Problem with this is we have no "power boost" option by flipping on Amazon if we hit capacity again. This may be a good option if we want to add a 3rd server in the future. As long as I have the Amazon CDN option, I don't think this is the best option right now.
Option 2: Use the second server as an SQL database server. For a Wordpress site, how strong does the database server have to be? How much would it increase capacity?
Option 3: Hook up a second server and a load balancer. From what I understand we'd have to get some type of syncing software. Theoretically this option would double our capacity, but it's also the most expensive, because in addition to the second server, we have to pay monthly for the load balancer.
Maybe there is another option I'm missing?
Whatever option we take should take into account that we'll probably have to add a third server in the future. I'm looking at the best combination of capacity and cost. I don't mind sacrificing speed (page loading time) a bit.
The software has already been optimized. Here's the current setup:
Nginx + PHP-FPM + APC PHP + Pagespeed + Varnish + Wordpress + W3 Total Cache
The weak point is W3 Total Cache, which is bulky compared to the HyperCache plugin, but it has an Amazon cloud CDN option that I can turn on in times of heavy usage to take pressure off the server. It's like a power boost.
With the CDN turned on, our dual processor server (16 cpus) can handle about 18 page views per second before the server load becomes too high. With the CDN turned off (i.e. the server processing and displaying everything), we can do about 10 page views a second.
I want to add a second server to our setup. How should I set up that server to maximize our capacity without breaking the bank?
Option 1: Use the second server as a CDN server. Problem with this is we have no "power boost" option by flipping on Amazon if we hit capacity again. This may be a good option if we want to add a 3rd server in the future. As long as I have the Amazon CDN option, I don't think this is the best option right now.
Option 2: Use the second server as an SQL database server. For a Wordpress site, how strong does the database server have to be? How much would it increase capacity?
Option 3: Hook up a second server and a load balancer. From what I understand we'd have to get some type of syncing software. Theoretically this option would double our capacity, but it's also the most expensive, because in addition to the second server, we have to pay monthly for the load balancer.
Maybe there is another option I'm missing?
Whatever option we take should take into account that we'll probably have to add a third server in the future. I'm looking at the best combination of capacity and cost. I don't mind sacrificing speed (page loading time) a bit.
Roosh
http://www.rooshv.com