When to use Mongrel as a web server for a Rails application?
When I started my first larger Rails application, I decided to use Apache (with Passenger) because I already had some experience with PHP, but I don't have in-depth knowledge of deploying Rails applications.
How do I choose a web server for my Rails application?
Are there any major differences between Apache and Mongrel?
Or is it just a matter of taste?
source to share
As you know, there are two popular settings:
-
Apache + passenger
-
Apache + mongrel (Apache sends requests to your mongrel clan)
Yes, it's a matter of taste. You made a good choice with Passenger for your first app because it's much easier to set up. This is the # 1 recommended option on the ROR official website. The performance is also very good.
Using mongrel is still a good option, but harder to set up and administer. You will need to make sure you are using rails app against mongrel cluster and not just one mongrel instance (for performance / parallel query reason). The adminstration value of your apache + adminstration of your mogrels.
source to share
You can also make a Nginx + Mongrel cluster. (I don't recommend doing this.) Go with Phusion Passenger. It's pretty easy to set up and fast. There is no reason not to use it.
I am using Passenger with Nginx. Besides the web server, also look into using Ruby Enterprise Edition. This will help you keep a good amount of memory. ~ 30%. Ruby Enterprise Edition.
source to share