I am BARRY HESS > Blog

Adding a Mongrel Instance to a Slicehost Rails App

Cindy
 
Photo by caribbean

Let’s say you have a Ruby on Rails website hosted at Slicehost. Let’s also say you used the snazzy deprec instructions to install said web site. And finally, let’s say said website is receiving increased traffic. Well, you may very well need to add another mongrel instance so your site’s performance remains acceptable.

That’s easy!

servers: 3  # previously was 2
BalancerMember http://127.0.0.1:8000
BalancerMember http://127.0.0.1:8001  # Added this one
cap restart_mongrel_cluster
cap restart_apache   # or cap apache_restart

You’re done!