300 cattle in orbit, the first herd shot around the world.
|
Uh, Hello InternetSo that McCain/Cotton image? Yeah … linked to all over the frakkin ‘net (hotlinked sometimes, too; bastards). This was perhaps a bad time to try moving the site from So the first 8K hits came from StumbleUpon, which I forgot existed. Then when that was done the forums picked it up and started hotlinking it all over the place (and I’ve resisted the urge to drop something evil in its place only because I have the bandwidth to take it — go Quantact!). That was a nice test of my new arrangement for PHP, to say the least. The server started to choke early on and then I discovered that Tracker.module was logging an error to the database on every page hit. Turned off the module and replaced it with the Views equivalent and it came right back up (no more writing to the DB). Then it appears Reddit picked it up (as a hotlink, of course). Funny thing about getting high up on Reddit: the top 30 or so links are at the bottom of frickin-Wired-dot-com. Yep, Wired. So I’m getting that as well. I looked at the traffic stats tool on Quantact and saw that I went from near-nothing to 600Kb/s, then 1.1Mb/s, then 2.1Mb/s and it was going up even more. What the hell? I looked at the file … I’d saved it as a PNG. A 500KB PNG.
I made a JPEG version and added the proper redirect and updated the blog entry. Now everyone gets the 100K file, my usage has fallen to 300-400Kb/s, and the site is very responsive now (compared to when it was at 2.1Mb/s at least). If it sounds like I’m complaining, I’m not. I’m just a little shocked. This round is much worse than when Slashfood picked up the Krispy Kreme Luthers a few weeks ago and I’m loving the lesson in how to keep a server going in 384MB of RAM. We’re at 30K hits to the actual page and an additional 25K for the images. This is fun. The SetupAs I mentioned earlier, I changed how the site worked last night. I had a thinking-while-in-the-shower moment where I realized that having So, ditching that, I realized that Apache isn’t too heavyweight when To do the setup (in Ubuntu), I first disabled and removed
Then I just made sure that every directory I served PHP out of had Update: Almost home-free. One last thing I did that made a huge difference: I changed the thread stack size. Linux allocates 8MB per thread for the stack. That’s excessive in this case. So I told Apache to make it 1MB instead. My memory usage dropped considerably and I’ve had no ill effects from it.
“Tradition means giving votes to the most obscure of all classes, our ancestors. It is the democracy of the dead. Tradition refuses to submit to the small and arrogant oligarchy of those who merely happen to be walking about. All democrats object to men being disqualified by the accident of birth; tradition objects to their being disqualified by the accident of death . . . I, at any rate, cannot separate the two ideas of democracy and tradition; it seems evident to me that they are the same idea.” — Orthodoxy, Garden City, NY: Doubleday Image, 1908, 48 – G. K. Chesterton |
|
Hehe – you never know when you’ll do something little and get a lot of attention for it
Exactly. The Krispy Kreme one was out of left field, IMO, because I was reposting an image from Flickr that I found on some other site to start with, but I managed to be the one linked. Kind of surprising, but I don’t mind.
This, however … this … wow.