Posted by: tszao | September 27, 2007

Rails server configuration

So I have decided to jump into the ring with Ruby and Rails and in doing so I will eventually need a server to go live with. In the mean time I am working with an old box at the house that will double as a staging server until I can get the cash to buy real production boxes. With that in mind I am doing some research to see what the best configuration is for a high availability production server. I am most likely going to run with a CentOS 5.0 rig but the guts under the covers have yet to be determined. So the best solution right now is to gather as much information as I possibly can and make an educated decision from there. Below are the sites that I have found so far:

http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/

http://mongrel.rubyforge.org/docs/apache.html

http://www.rubyrobot.org/article/mongrel-apache-load-balancing-ruby-on-rails

http://www.refreshinglyblue.com/2007/6/13/ruby-on-rails-ssl-ispconfig-apache-mongrel

http://bliki.rimuhosting.com/space/knowledgebase/linux/miscapplications/ruby+on+rails

http://weblog.rubyonrails.org/2006/6/11/rails-system-back-on-track

http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx

http://www.webmasterwords.com/ruby-rails-mongrel-apache-easy

http://mywheel.net/blog/index.php/2007/01/26/hosting-ruby-on-rails-lighttpd-apache-mongrel-webrick-litespeed-and-ngnix/

http://blog.kovyrin.net/2006/08/22/high-performance-rails-nginx-lighttpd-mongrel/

http://www.oreillynet.com/ruby/blog/2006/05/post.html

http://rails.rainbowpurple.com/2007/02/06/apache2mod_proxy-with-mongrel-for-development-on-ubuntu-edgy/

http://weblog.rubyonrails.org/2006/7/3/pound-makes-lighty-and-mongrel-play-nice

There appears to be a consistent theme with Apache 2.2, Mongrel, Subversion or Capistrano, and MySql. While I thought that Apache and FastCGI was the standard, I guess that I was wrong. Even rubyonrails.org is running with Apache 2.2 and Mongrel. If you know of something that works better, I would be glad to add it to the list.

Responses

I’ve tried both FastCGI and mongrel. FastCGI actually benchmarks slightly higher than mongrel for performance but its a pain to configure so i always recommend that people use mongrel.

Thanks for the comments. I want to do the mongrel solution however I am a little light on the admin side of things. So I have a staging box that I have formatted no less than 10 times trying to get the configuration down. As soon as I get it the way I want it the notes on how to do it will be sure to follow.

Leave a response

Your response:

Categories