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?

+2


source to share


3 answers


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.

+1


source


There is no reason to use a mongrel.

The reason you see so many sites / tutorials using mongrel is because it is a good choice before Passenger.



The passenger works better on the performance side, is dead easy to install and no (for 90% of cases) control is required.

+1


source


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.

0


source







All Articles