Dan's homepage

Archive for December, 2008

Phusion Passenger and Ruby Enterprise Install Notes / Tweaks

Tuesday, December 30th, 2008

I just moved camelcamelcamel from an Apache mod_proxy + Mongrels architecture to Apache + mod_rails (Passenger) and Ruby Enterprise, a couple of pimp tricks I read about recently…unfortunately I ran into some problems and they are probably worth noting just in case anyone else has the same issues.

Pro tip: if you’re going to use Ruby Enterprise, install it first.  Otherwise you’ll end up installing Passenger and configuring Apache twice, like I did.

First of all, I couldn’t dpkg -i the Ruby Enterprise (REE) .deb they provide for Ubuntu, as I’m running the amd64 release and the REE package is x86 only.  There might be some way to force it, but installing from the source worked just fine.

I had no other problems until it came time to restart my newly-configured Apache.  While it restarted without error, attempting to access the site revealed missing gems!  It turns out REE keeps its own copies of all Ruby gems (and Ruby Gems itself), so you’ll need to use its copy of Ruby Gems via its full path (replace the version and date as necessary): sudo /opt/ruby-enterprise-1.8.6-20080624/bin/gem install <gem>.  Do this for all of the gems required by your Rails projects, then restart Apache.

Coming from the mod_proxy environment, I needed to add a <Directory> entry for camelcamelcamel’s DocumentRoot in my vhost config. I came to this conclusion due to favicon.ico requests returning 500s.  I config’d thusly:

<Directory “DocumentRoot Here”>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

At this point, things just worked for me.  Quite a better experience than figuring out how to setup mod_proxy, to say nothing of the un-automated way I was managing my 10 Mongrels; I don’t even want to consider how often I’ve had to ‘stroke the following times 10: svn up followed by CTRL+A N, CTRL+C, up arrow, enter, my password, enter).  I would be ashamed to be so lazy, but shame takes a lot of work (after all, I’m not Catholic.)

In addition to removing that shit from my plate, the new setup will launch more processes if necessary!  Being limited to 10 requests per second was hurting the site’s responsiveness at times, so this should help quite a bit.  Initial benchmarks suggest the homepage can handle ~62 reqs/s; this seems much more capable than 10 Mongrels, but I’ll have to wait and see how it goes before I really know.  I’ve tweaked Apache with the same settings we use on the Shup / Stashbox server, so we should be able to serve a veritable boat load of requests at a time.

Note to self: donate to the makers of Passenger and REE as soon as they offer a non-Paypal method of payment and/or WAMU unfucks my checking account.

camelcamelcamel update – cryptomail birthday edition

Monday, December 15th, 2008

On the verge of 1,100 users (and after one long month of coding), I have finally released a new version of camelcamelcamel, my Amazon price tracking thingy.  This is the official Cryptomail birthday edition; happy birthday, Josh!

Check out the changes here.

Thanks to Nithya for her time/support/ideas invested into this (and all) release(s).

Pearl Jam Re-mixes, Re-masters, and Re-releases Ten

Wednesday, December 10th, 2008

View the official news release here.

I can’t wait to hear how it sounds, given that the entire band feels / felt that Ten was over-produced.  Nice extras, too!

camelcamelcamel milestone – 1000 users

Sunday, December 7th, 2008

Not bad considering our non-alpha launch was on or around May 1, 2008!  Thanks to Nithya and Cody and Brennan and Josh and Shane and everyone else who helped (and continue helping to) push C3 (and all the other Camel sites) toward that desert oasis.

Next (overly optimistic) stop: 10,000!

Update, January 6, 2009: Less than a month later and 1,300 users has been reached.  Woot!

Update, January 13, 2009: One week is all it took to hit 1,400!

Update, January 17, 2009: Four days to 1,500.

Update, February 9, 2009: 1,700!

Update, February 23, 2009: 1,800!

Update, March 8, 2009: 1,900!

Update, March 19, 2009: 2,000!

Update, April 11, 2009: 2,100!

Update, May 13, 2009: 2,300!

Update, June 3, 2009: 2,500!

Update, July 7, 2009: 2,700!

Update, July 24, 2009: 2,800!

Update, August 10, 2009: 2,900!

Update, August 28, 2009: 3,000!

Update, September 15, 2009: 3,100!

Update, October 3, 2009: 3,200!

Update, October 7, 2009: 3,300!  (Thanks, Lifehacker.)

Update, October 12, 2009: 3,400!

Update, October 20, 2009: 3,500!

Update, October 28, 2009: 3,600!

Update, November 4, 2009: 3,700!

Update, November 10, 2009: 3,800!

Update, November 16, 2009: 3,900!

Update, November 22, 2009: 4,000!

Update, November 27, 2009: 4,100!

Update, November 30, 2009: 4,200!

Update, December 2, 2009: 4,300!

Update, December 4, 2009: 4,400!

Update, December 6, 2009: 4,500!

Update, December 9, 2009: 4,600!

Update, December 13, 2009: 4,700!

Update, December 15, 2009: 4,800!

(My non-scientific estimate is that we will hit 10,000 users by June 9, 2010.  This is here so I can laugh when we are nowhere near this calculation; though whether the actual number is higher or lower remains to be seen :])