News for hackers. Stuff that matters.
Re:An Unexpected Ass Kicking by wglb on Sunday August 05, 2012 @07:33PM (#4343029)
Re:An Unexpected Ass Kicking by pooriaazimi on Sunday August 05, 2012 @11:07PM (#4343531)
For those who don't know (every time I mention this, I get like 10 upvotes. Apparently a lot of people even on HN don't know about it!), if you want to get a (Google) cached version of a page, just type 'cache:[URL]' in Google search bar and press return.

'cache:http://joelrunyon.com/two3/an-unexpected-ass-kicking -> http://webcache.googleusercontent.com/search?hl=en&outpu...

Re:An Unexpected Ass Kicking by pneumatics on Monday August 06, 2012 @05:20PM (#4347341)
Thanks sir! And never underestimate the value of the little cantrips like that to somebody who isn't aware of them. I was astounded that most people didn't know CTRL+F, and I always ask people if they know about it.(http://www.theatlantic.com/technology/archive/2011/08/crazy-...)
Re:An Unexpected Ass Kicking by _delirium on Monday August 06, 2012 @09:25AM (#4345058)
Does Google document these all anywhere? I could've sworn they used to have a page listing them, but I can't find it anymore. There are a few third-party listings, though, e.g. this one from SEOmoz: http://www.seomoz.org/article/the-professionals-guide-to-adv...
Re:An Unexpected Ass Kicking by pooriaazimi on Monday August 06, 2012 @04:19AM (#4344392)
Haha! 14 points already... Told you!
Re:An Unexpected Ass Kicking by joelrunyon on Sunday August 05, 2012 @08:41PM (#4343224)
It's slow, but we should have the server back up and running.

Sorry about this. Didn't think the site was going to get hammered like it did.

Re:An Unexpected Ass Kicking by mattdeboard on Sunday August 05, 2012 @09:12PM (#4343294)
Your site took an unexpected ass-kicking.
Re:An Unexpected Ass Kicking by joelrunyon on Monday August 06, 2012 @08:04AM (#4344834)
50,000 hits in a few hours will do that to a site. Time to upgrade.
Re:An Unexpected Ass Kicking by kragen on Tuesday August 07, 2012 @11:57AM (#4350678)
Depends. 50k hits in 3 hours is 5 hits a second. I could serve more than 10 hits a second on the first web server I ever set up, in 1994, on an SGI Indigo 2 with maybe a 250MHz CPU and 256 megabytes of RAM, using NCSA httpd, which spawned a new process for every hit. Under IRIX. While I was using it as a workstation. Also, doing a reverse DNS lookup for every hit for the access log.

My current home page, http://canonical.org/~kragen/, benchmarks at 4000 requests per second with ab on localhost. That's roughly a thousand times the load you were under. This is not because our server is a thousand times faster than yours. (It's a dual-core 2.4GHz Celeron, running Apache.) This is because your server is doing a thousand times as much work as it needs to in order to serve that page.

Re:An Unexpected Ass Kicking by kragen on Tuesday August 07, 2012 @02:58PM (#4351659)
I'm asserting that your server isn't a thousand times slower because a thousand times slower would be a high-end eight-bit microcontroller. An Arduino, say. Feel free to correct me if your server is in fact running on an Arduino or equivalent.
Re:An Unexpected Ass Kicking by joelrunyon on Wednesday August 08, 2012 @01:44AM (#4354120)
I've had my tech guy speed things up. Got off shared hosting, on a VPS and should have things sped up all around. Still need to cut all the javascript in the current theme, but that's another project for another day.
Re:An Unexpected Ass Kicking by kragen on Wednesday August 08, 2012 @02:49PM (#4357328)
The JS might actually speed things up by allowing you to do stuff on the client that you'd otherwise have to do on the server.
Re:An Unexpected Ass Kicking by jacques_chester on Sunday August 05, 2012 @11:21PM (#4343561)
with an out-of-the-box configuration, Wordpress is notorious for dying if you so much as breathe on it. It requires generous lashings of caching to make it workable.

If you haven't already, install W3 Total Cache or WP-Supercache.

Re:An Unexpected Ass Kicking by joelrunyon on Monday August 06, 2012 @02:38AM (#4344133)
W3 TC is installed. Just had a massive influx over the last two days that overwhelmed even that. Seems like its time to upgrade hosting plans.