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
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:
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.
The link will help you understand more on your question
Thanks -Raghavendra
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