About a day and a half ago, Reddit user stderr posted a link to the PHP documentation showing that GOTO will be a part of the language as of version 5.3. Somewhere in the reddit comments for this post, a link was pasted to an entry on this blog where I announced the feature being added years earlier. This naturally brought out the usual flame wars that circle around something like GOTO and drove some new traffic to my blog. No big deal, my server is pretty low-traffic, it can handle a few extra hits.
Within a few hours, burghler had browsed through other entries on my blog, finding what was at the time, the most recent entry about my friend's experience burying her mother. Just like the first reddit post, which had made the front page, this one also had a somewhat incendiary title.
Okay, more than a little incendiary, but I'll get to that in a moment...
The lesson
You would think, given that I'm the Architect for Yahoo WebSearch Front-end Engineering, that I would know something about configuring a server to not fall over under load. And in fact, I spend a good portion of my time on making sure that unexpected traffic spikes aren't enough to make a server get overloaded and trigger a chain-reaction of front-ends falling over. I really have no excuse for not preparing my server for what happened.
When I woke up Wed morning, I found that my server just didn't seem to respond to SSH or HTTP attempts. A reboot request didn't help, and the colo folks insisted that the server was simply running slow, but it was running. So I left my ssh connection attempt running and eventually I did get a login prompt. Several pained minutes later I managed to get an iptables rule in place to block off the flood of traffic (quicker than trying to stop the webserver). Suddenly, the CPU load was gone! Turns out I had my MaxClients setting much too high, and after a certain degree of concurrency, enough web-server children had spawned off to use up the available memory, which triggered disk swap, and made the CPU load 10x worse. Again, I know this effect exists, I really should have set up this server better.
A few tweaks to the config later and I got my server running smoothly. I also took the time to re-run my access log statistics. Of the aproximately 3 years of stats I've got, a full 2% of my hits were logged yesterday. Impressive reddit.... you win this round...
Bright squares indicate heavy traffic, dark squares indicate low traffic
Prior to yesterday's traffic
Jan | |||||||||||||||||||||||||||||||
Feb | |||||||||||||||||||||||||||||||
Mar | |||||||||||||||||||||||||||||||
Apr | |||||||||||||||||||||||||||||||
May | |||||||||||||||||||||||||||||||
Jun | |||||||||||||||||||||||||||||||
Jul | |||||||||||||||||||||||||||||||
Aug | |||||||||||||||||||||||||||||||
Sep | |||||||||||||||||||||||||||||||
Oct | |||||||||||||||||||||||||||||||
Nov | |||||||||||||||||||||||||||||||
Dec | |||||||||||||||||||||||||||||||
01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Current stats
Jan | |||||||||||||||||||||||||||||||
Feb | |||||||||||||||||||||||||||||||
Mar | |||||||||||||||||||||||||||||||
Apr | |||||||||||||||||||||||||||||||
May | |||||||||||||||||||||||||||||||
Jun | |||||||||||||||||||||||||||||||
Jul | |||||||||||||||||||||||||||||||
Aug | |||||||||||||||||||||||||||||||
Sep | |||||||||||||||||||||||||||||||
Oct | |||||||||||||||||||||||||||||||
Nov | |||||||||||||||||||||||||||||||
Dec | |||||||||||||||||||||||||||||||
01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
My flickr views...
Clarifications
Despite the title of the reddit entry, I have nothing against Christians. Further, I count myself as one. So if you really want to take a piss at people who are calling Christians evil, don't aim at me. Thanks.
Moreover, I don't think those people were evil, or even horrible (though I did use that word in the heat of the moment). A loved one had just died, and everyone was in pain. Death SUCKS, and it was a bad situation no matter how you slice it. I don't hate those people for trying to erase my friend though, I pity them. I pity the fact that they turned down the chance to mourn the passing of their loved one by crying on another loved one's shoulder. I pity the fact that they didn't get nearly the closure that my friend did. I pity them for willingly becoming victims of their own grief.
The rest is between them and God.
Sara, did you quit blogging? :(
ReplyDeleteNo, but I've had little to blog about lately.
ReplyDeleteWatch this space and I'll have a PHP related post fairly soon.
Didn't quite follow the first paragraphs, but the "Clarifications" one was brilliantly put. Kudos!
ReplyDeleteplease start blogging again!
ReplyDelete