# Using mongrel cluster

**URL:** <https://www.ruby-forum.com/t/using-mongrel-cluster/61301>\
**Category:** Rails\
**Created:** [May 22, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/using-mongrel-cluster/61301 "2006-05-22T22:36:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 22, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/using-mongrel-cluster/61301/1 "2006-05-22T22:36:45Z")

</div>

Me thinks the docs might need a bit of fleshing out 😜

[http://mongrel.rubyforge.org/docs/mongrel\_cluster.html](http://mongrel.rubyforge.org/docs/mongrel_cluster.html)

At the very least, what vars can go in its config.

Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 23, 2006, 5:35am UTC](https://www.ruby-forum.com/t/using-mongrel-cluster/61301/2 "2006-05-23T05:35:06Z")

</div>

Right now you find some references to docs about mongrel\_cluster at  
(scroll  
down to boottom):

[http://mongrel.rubyforge.org/docs/index.html](http://mongrel.rubyforge.org/docs/index.html)

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 23, 2006, 5:44am UTC](https://www.ruby-forum.com/t/using-mongrel-cluster/61301/3 "2006-05-23T05:44:07Z")

</div>

Joe wrote:

> Me thinks the docs might need a bit of fleshing out 😜

same. ive been looking for info on how to serve public/ with mongrel…  
so far, ive tried various things, including -r public, -r  
/absolute/path/to/pubic, about to try making up a mongrel.conf and  
setting a DirHandler for “.” (hopefully this doesnt interfere with the  
existing controller stuff).

i thought maybe it was just choking on symlinks, since dirs in /var/www  
are actually linked to /usr/local/src, or maybe a permissions thing, but  
seeing as other daemons can read the public files even running as  
‘nobody’ instead of root, that’s proably not it…

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 23, 2006, 6:30am UTC](https://www.ruby-forum.com/t/using-mongrel-cluster/61301/4 "2006-05-23T06:30:15Z")

</div>

On Mon, 2006-05-22 at 22:36 +0200, Joe wrote:

> Me thinks the docs might need a bit of fleshing out 😜
> 
> [http://mongrel.rubyforge.org/docs/mongrel\_cluster.html](http://mongrel.rubyforge.org/docs/mongrel_cluster.html)
> 
> At the very least, what vars can go in its config.

Yeah, I’m writing those as fast as I can. All this week I’m pretty much  
unemploying myself so people can have a release, so stay tuned and  
they’ll come soon.

–  
Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 23, 2006, 2:59pm UTC](https://www.ruby-forum.com/t/using-mongrel-cluster/61301/5 "2006-05-23T14:59:24Z")

</div>

Hi Joe:

On May 22, 2006, at 4:36 PM, Joe wrote:

> Me thinks the docs might need a bit of fleshing out 😜
> 
> [http://mongrel.rubyforge.org/docs/mongrel\_cluster.html](http://mongrel.rubyforge.org/docs/mongrel_cluster.html)
> 
> At the very least, what vars can go in its config.

You don’t need to mess with editing the config file at all. Just use  
the “cluster::configure” command and it will write the file for you.  
The command takes the same arguments as the “start” command and  
respects its default values. You can see all the options by doing  
“mongrel\_rails cluster::configure -h”.

Example, 8 mongrels in production environment starting at port 8000  
bound to localhost for use behind a balancer.

Configure:  
mongrel\_rails cluster::configure -p 8000 -e production -a 127.0.0.1 -N 8

Start:  
mongrel\_rails cluster::start

Stop:  
mongrel\_rails cluster::stop

If you don’t call these from RAILS\_ROOT, then use “–chdir” to set  
RAILS\_ROOT when configuring. You can also write the configuration  
file to a specfic directory using “–config”. To start/stop use “–  
config” to tell the command where to read the configuration from.

Good luck,  
Bradley Taylor

* * *

Rails Machine  
Simplified Ruby on Rails application deployment  
[http://railsmachine.com](http://railsmachine.com)

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 23, 2006, 7:12am UTC](https://www.ruby-forum.com/t/using-mongrel-cluster/61301/6 "2006-05-23T07:12:56Z")

</div>

just use mongrel it as you would use webrick. it just works. no  
configuration needed. If you have a special setup, take a look at the  
help  
options, if you move to production, just add mongrel-cluster, it also  
just  
works, and again the help options will inform you how, there is no  
special  
thing about symlinks and that stuff you mentioned …
