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!
- Add 1 to the “servers” parameter in
/etc/mongrel_cluster/appname.yml.servers: 3 # previously was 2
- Add another balance member to
/usr/local/apache2/conf/apps/appname.conf:BalancerMember http://127.0.0.1:8000 BalancerMember http://127.0.0.1:8001 # Added this one
- Restart the mongrel cluster using Capistrano:
cap restartmongrelcluster
- Restart the apache server using Capistrano:
cap restartapache # or cap apacherestart
You’re done!
Technorati Tags: Ruby on Rails, mongrel, Slicehost
Related posts:






