Whyt should i use mongrel_cluster?

why should i use mongrel_cluster in my rails application?
What are its benefits for which i should install and configure it
?
is webrick server not enough for rails application?

Thanks

amritpal p. wrote in post #993486:

why should i use mongrel_cluster in my rails application?
What are its benefits for which i should install and configure it
?
is webrick server not enough for rails application?

AFAIK Webrick is only suitable for development, or very low traffic web
applications. Mongrel and mongrel_cluster used to be the popular way to
deploy Rails applications, but there are other, easier to manage,
solutions available today.

I personally use the excellent Phusion Passenger (A.K.A. modrails) for
example:

http://www.modrails.com/

Hello

Development - only webrick & mongrel

Production - Mongrel cluster

features

  • Load balancing
  • request sharing
  • Starts with one simple command
  • restarts & stops
  • Creates a PID file so you can kill process
  • runs in daemon mode

Now if you are planning to deploy some app for least 30 people- you can
use webrick on dev mode will not matter; but MC is for production use.

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

The link will help you understand more on your question

Thanks
-Raghavendra

On 22 Apr 2011, at 10:52, T.ragahvendra Shet wrote:

  • runs in daemon mode

Now if you are planning to deploy some app for least 30 people- you
can
use webrick on dev mode will not matter; but MC is for production use.

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

The link will help you understand more on your question

An article from five years ago…

There’s better options these days than mongrel cluster. Nginx/Apache +
Passenger + Ruby EE, a thin cluster, a unicorn cluster. And if you’re
developing a Rails 3 app, you shouldn’t even think about mongrel
anymore imo.

Also, with a cluster running behind a proxy (and the Apache load
balancing is far from ideal), there’s a lot more to take care of in
case one of the mongrels dies. You’re also wasting huge amounts of
memory for every extra mongrel you put in the cluster.

Maybe I missed something here (since the original post hasn’t even
been quoted), but there’s very little reason these days to run
something on Mongrel, even Rails 2 apps.

Best regards

Peter De Berdt

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs