News for hackers. Stuff that matters.
Re:9 million hits/day with 120 megs RAM by mkr-hn on Wednesday August 31, 2011 @10:00AM (#2945544)
This is what you get with WordPress and W3 Total Cache (the caching plugin I use). It generates HTML files, then uses some fancy .htaccess magic to send requests to them. It can even push to a CDN. My blog survived being whacked by 3000 hits from HN over the course of 2 hours without blowing up.

Pre-gzipped pages are nice too. :)

Re:9 million hits/day with 120 megs RAM by EponymousCoward on Wednesday August 31, 2011 @11:11AM (#2945863)
3000 hits over 2 hours is < 0.5 hits/second and nothing to write home about, sorry.
Re:9 million hits/day with 120 megs RAM by mkr-hn on Wednesday August 31, 2011 @11:31AM (#2945971)
The raw number wasn't the point. WP is notorious for collapsing under a gentle load without caching.
Re:9 million hits/day with 120 megs RAM by jroes on Wednesday August 31, 2011 @04:12PM (#2947333)
The commenter also didn't take into account that the req/sec was probably not evenly distributed across 2 hours.
Re:9 million hits/day with 120 megs RAM by iqster on Wednesday August 31, 2011 @01:19PM (#2946511)
I can vouch for that. I've had vanilla WP die on me from the gentle load that comes with a link going on HN. I assumed it was performant out of the box ... learned my lesson!
Re:9 million hits/day with 120 megs RAM by tombot on Wednesday August 31, 2011 @10:30AM (#2945671)
W3 Total Cache really is a first rate plugin, we've had great success throwing Varnish https://www.varnish-cache.org/ infront of WordPress
Re:9 million hits/day with 120 megs RAM by ftownes on Monday September 05, 2011 @05:47PM (#2963409)
W3TC integrates with varnish and supports a number of backend web servers.

The permissions changes it asks for are because caching plugins need to create files on the server and most servers are either poorly configured or managment of groups:users is difficult, so temporarily requesting that users modify permissions so that the caching plugin can create the files for the user improves the installation experience via lowering the technical experience needed and the number of steps required.

I don't recommend suPHP in practice as it's quite slow, similar if not better security can be realized by using a reverse proxy, and then running PHP in fastcgi mode for example with a backend web server.

Re:9 million hits/day with 120 megs RAM by xinsight on Wednesday August 31, 2011 @11:58AM (#2946116)
My concern with the wordpress cacheing plugins I've looked at is that they require the webserver to have write access to the webserver directory. This is particularly dangerous on shared webhosts, as a malicious customer on the same server could write php files in your cache directory.
Re:9 million hits/day with 120 megs RAM by tombot on Wednesday August 31, 2011 @04:13PM (#2947336)
I'm pretty sure that W3 Total Cache writes to /wp-content/uploads which you'd need to be writeable anyway.
Re:9 million hits/day with 120 megs RAM by mkr-hn on Wednesday August 31, 2011 @01:48PM (#2946660)
That's what suPHP is for.