Wednesday, July 23
An Instalanche at mu.nu is nothing new; we've coped with many a 'lanche over the years.
But an Instalanche combined with AVG 8's accidental DDoS and CPanel's screwed up Apache builder was too much for us. The server was coping just fine, but you had to stand in line waiting for a connection.
The cure? Smack keepalive over the head, hard. What was happening was that random Instapundit reader comes along and sees link to Protein Wisdom. Follows link. AVG 8 says Aha! A web page! Potential danger! And follows twenty links from that page in parallel.
And, more often than not, grabs 20 links from the monthly archive listing, so it hits Protein Wisdom 20 more times. And then the keepalive timeout sits there holding the connection open, so that a single visitor to the blog is using up 300MB of precious server RAM.
I tried just increasing the number of available threads, but Apache has now been compiled with a hard limit of 256. This wasn't true before; it's a new twist the friendly idiots at CPanel seem to have thrown into the mix.
So, instead, I aggressively de-optomised keepalive. The timeout is now 2 seconds, and there's a maximum of 5 requests before it drops the connection. That seems to have brought us sufficient breathing space until I can get some sites spun off to Sakura.
Posted by: Steven Den Beste at Wednesday, July 23 2008 03:01 AM (+rSRq)
Posted by: Pat Bitton at Thursday, July 31 2008 05:48 AM (dLNuu)
Pat, I think you're a bit confused here. The problem isn't that Pixy's copy of LinkScanner is doing those evil things.
It's that the copies used by hundreds of random visitors are doing those evil things. An upgrade by Pixy of his copy of LinkScanner (even assuming he even has one, which I doubt) would have no effect on that.
Posted by: Steven Den Beste at Thursday, July 31 2008 07:00 AM (+rSRq)
Posted by: Old Grouch at Friday, August 01 2008 09:29 AM (8m7sz)
I've been so busy lately I haven't had time to "get out" much to other blogs. (a sucky situation I hope will change soon... but with my luck probably not). So I didn't realize our little friend had hit lots of us with the same idiot message.
Posted by: Teresa at Friday, August 01 2008 02:00 PM (mMa3+)
56 queries taking 0.4085 seconds, 320 records returned.
Powered by Minx 1.1.6c-pink.