Monthly Archive for October, 2008

Moving in 3 weeks!

Earlier in the year we sold our appartement and bought a new house. With 2 kids it was simply not fun anymore in our cosy appartement on the 4th floor. We won’t get the keys of our new house, which is in the final stages of construction, for another month or two. In the meantime we have to make room for the new owners so the next couple of weeks are gonna be extra hectic and very interesting to say the least.

Passenger makes Apache relevant again

After stearing clear of Apache2 for the last year for all production servers I’m now ready to give it another try, thanks to Phusion’s Passenger. I’ve grown really tired of setting up god scripts for all environments and fighting mongrel’s pidfile suckage.

Far too many times have things failed because of a dead worker in the cluster or some stale or (even worse!) non-existent pidfiles on the system. Mongrel has served well, but it’s time to look for something better.

A typical setup I use is nginx as the front-end server doing all static content while a pack of mongrels is handling the Rails requests through reverse proxy. nginx is also very important for reproxying requests, where content is streamed from another internal server over the front facing servers. In most of the Rails app I’m writing I have to deal with very large files (audio, video) so reproxy is essential if you want to have any sort of performance on a reasonable budget. Since Apache2 lacks reproxy support (AFAIK, please prove me wrong!) I really want to keep nginx as the front-end server and then do the Rails handling with Apache2 + Passenger through reverse proxy.

I’ve come a cross a couple of posts on this very topic.

I’ll be doing some heavy development and testing over the next couple of days with this setup, will post my findings…