Hi everyone. Zed, thanks for Mongrel. I've been running mongrel on my WiFi cafe site (<a href="http://wifi.earthcode.com">http://wifi.earthcode.com</a>), and it's been great. It handled a front-page digg a few weeks ago without blinking.
<br><br>However, I'm setting up a staging environment right now, and I'm getting what looks like three mongrel processes *all listening on the same port* for each mongrel instance I start. Should I be seeing this?<br><br>
<span style="font-weight: bold;">ps -ef | grep mongrel</span><br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8971&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 6 13:37 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -p 8020 -a <a href="http://127.0.0.1">
127.0.0.1</a> -l /var/www/apps/thoth/current/log/mongrel.log -P /var/www/apps/thoth/current/log/mongrel.8020.pid -c /var/www/apps/thoth/current<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8972&nbsp; 8971&nbsp; 0 13:37 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -p 8020 -a 
<a href="http://127.0.0.1">127.0.0.1</a> -l /var/www/apps/thoth/current/log/mongrel.log -P /var/www/apps/thoth/current/log/mongrel.8020.pid -c /var/www/apps/thoth/current<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8973&nbsp; 8972&nbsp; 0 13:37 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -p 8020 -a 
<a href="http://127.0.0.1">127.0.0.1</a> -l /var/www/apps/thoth/current/log/mongrel.log -P /var/www/apps/thoth/current/log/mongrel.8020.pid -c /var/www/apps/thoth/current<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8975&nbsp; 8919&nbsp; 0 13:37 pts/0&nbsp;&nbsp;&nbsp; 00:00:00 grep mongrel
<br><br>Background facts:<br>- Overall setup: VPS at Rimu; custom compiled Apache 2.2 w/mod proxy -&gt; mongrel cluster<br>- distro: centos 4<br>- mongrel: <a href="http://0.3.13.4">0.3.13.4</a><br>- ruby: 1.8.4<br><br>Here's a console session showing the three processes. Here I'm starting a single instance, but the same thing happens when I start a cluster (I get 3x process for each mongrel server).
<br>-------------------------------------------------------------<br><span style="font-weight: bold;">root$/var/www/apps/thoth/current/log &gt;ps -ef | grep mongrel</span><br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8968&nbsp; 8919&nbsp; 0 13:36 pts/0&nbsp;&nbsp;&nbsp; 00:00:00 grep mongrel
<br><span style="font-weight: bold;">root$/var/www/apps/thoth/current/log &gt;/usr/local/bin/mongrel_rails start -d -e production -p 8020 -a <a href="http://127.0.0.1">127.0.0.1</a> -l /var/www/apps/thoth/current/log/mongrel.log -P /var/www/apps/thoth/current/log/mongrel.8020.pid -c /var/www/apps/thoth/current
</span><br style="font-weight: bold;"><span style="font-weight: bold;">root$/var/www/apps/thoth/current/log &gt;ps -ef | grep mongrel</span><br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8971&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 6 13:37 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -p 8020 -a 
<a href="http://127.0.0.1">127.0.0.1</a> -l /var/www/apps/thoth/current/log/mongrel.log -P /var/www/apps/thoth/current/log/mongrel.8020.pid -c /var/www/apps/thoth/current<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8972&nbsp; 8971&nbsp; 0 13:37 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -p 8020 -a 
<a href="http://127.0.0.1">127.0.0.1</a> -l /var/www/apps/thoth/current/log/mongrel.log -P /var/www/apps/thoth/current/log/mongrel.8020.pid -c /var/www/apps/thoth/current<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8973&nbsp; 8972&nbsp; 0 13:37 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -p 8020 -a 
<a href="http://127.0.0.1">127.0.0.1</a> -l /var/www/apps/thoth/current/log/mongrel.log -P /var/www/apps/thoth/current/log/mongrel.8020.pid -c /var/www/apps/thoth/current<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8975&nbsp; 8919&nbsp; 0 13:37 pts/0&nbsp;&nbsp;&nbsp; 00:00:00 grep mongrel
<br><span style="font-weight: bold;">root$/var/www/apps/thoth/current/log &gt;ls</span><br>total 48<br>drwxrwxrwx&nbsp; 2 deploy deploy&nbsp; 4096 Nov&nbsp; 4 13:37 .<br>drwxr-xr-x&nbsp; 6 deploy deploy&nbsp; 4096 Nov&nbsp; 3 20:06 ..<br>-rw-rw-rw-&nbsp; 1 root&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4 Nov&nbsp; 4 13:37 
mongrel.8020.pid<br>-rw-rw-rw-&nbsp; 1 root&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp; 590 Nov&nbsp; 4 13:37 mongrel.log<br>-rw-r--r--&nbsp; 1 root&nbsp;&nbsp; root&nbsp;&nbsp; 31632 Nov&nbsp; 3 21:20 production.log<br><span style="font-weight: bold;">root$/var/www/apps/thoth/current/log &gt;cat 
mongrel.log</span><br>** Daemonized, any open files are closed.&nbsp; Look at /var/www/apps/thoth/current/log/mongrel.8020.pid and /var/www/apps/thoth/current/log/mongrel.log for info.<br>** Starting Mongrel listening at <a href="http://127.0.0.1:8020">
127.0.0.1:8020</a><br>** Starting Rails with production environment...<br>** Rails loaded.<br>** Loading any Rails specific GemPlugins<br>** Signals ready.&nbsp; TERM =&gt; stop.&nbsp; USR2 =&gt; restart.&nbsp; INT =&gt; stop (no restart).
<br>** Rails signals registered.&nbsp; HUP =&gt; reload (without restart).&nbsp; It might not work well.<br>** Mongrel available at <a href="http://127.0.0.1:8020">127.0.0.1:8020</a><br>** Writing PID file to /var/www/apps/thoth/current/log/mongrel.8020.pid
<br>root$/var/www/apps/thoth/current/log &gt;<br><br><br>-- <br><a href="mailto:andre.lewis@gmail.com">andre.lewis@gmail.com</a><br>My tech blog: <a href="http://earthcode.com">http://earthcode.com</a><br>Wifi cafes: <a href="http://wifi.earthcode.com">
http://wifi.earthcode.com</a>