I have wordpress site on Linode VPS (Ubuntu 11.04). Site working fine, but sometimes i have Digg-effect (large numbers of simultaneous visits) and my site has down. I looking a cloud-solution that worked only when the linode-server can not process a large number of requests. Thanks for help..
3 Answers
Simplest thing to do is place a caching server infront of wordpess, such as varnish-cache
Or there are nginx + memcache setups that are also viable, at any rate reducing the amount of dynamic content generation will help alleviate a lot of the strain on your solution.
Update: voretaq7's comment reminded me of the W3 Total cache plugin, this is a great plugin that allows you to take database and objects and cache them within word press using a variety of technologies.
-
3Reducing your dynamic content generation should be step 1. You'd be amazed how much your VPS can serve if it's only got to take the data off disk/out of RAM and hand it to the client. It's the database-querying PHP-processing bit that kills sites.– voretaq7Mar 22, 2012 at 17:27
-
-
-
@BohdanHdal You of course need to configure it, to run on port 80, cache lifetimes etc.– OneiroiMar 22, 2012 at 22:22
Have you considered using something like CloudFlare as a CDN?
-
Thank you. I have already paid attention to CloudFlare. You know any alternatives of this service? Mar 22, 2012 at 21:17
-
I think that if you google for CDN, you will find a lot of commercial alternatives. The wikipedia page on it has lots of alternatives listed too.– sybreonMar 23, 2012 at 2:15
My first instinct mirrors Oneiroi's position... but to try and be creative, spin up cloud instances when under load and start issues temporary redirects to the cloud server's DNS name. Of course, anything generated still has to be sourced from over there, and thus already copied across the network.