Mongrel Cluster + Apache2 on Webfaction
Friday, February 20th, 2009One project I worked on recently required to set up a mongrel cluster on Webfaction. On a typical Rails setup, I have a mongrel cluster running under apache2. I thought it would be easy to set this up on Webfaction, but it wasn’t so straight forward, so I’m going to document it here.
First, the one-click rails app on webfaction assumes you will run one mongrel server per application. However, in order to handle multiple instances with load balancing, we will need to make some changes. The setup is not too complicated, but we need to run our own apache2. But before you install additional software, you should first make sure your app runs on the server with one instance of mongrel. Once you do that, you can follow the instructions below.
