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 8971 1 6 13:37 ? 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 8972 8971 0 13:37 ? 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 8973 8972 0 13:37 ? 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 8975 8919 0 13:37 pts/0 00:00:00 grep mongrel
<br><br>Background facts:<br>- Overall setup: VPS at Rimu; custom compiled Apache 2.2 w/mod proxy -> 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 >ps -ef | grep mongrel</span><br>root 8968 8919 0 13:36 pts/0 00:00:00 grep mongrel
<br><span style="font-weight: bold;">root$/var/www/apps/thoth/current/log >/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 >ps -ef | grep mongrel</span><br>root 8971 1 6 13:37 ? 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 8972 8971 0 13:37 ? 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 8973 8972 0 13:37 ? 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 8975 8919 0 13:37 pts/0 00:00:00 grep mongrel
<br><span style="font-weight: bold;">root$/var/www/apps/thoth/current/log >ls</span><br>total 48<br>drwxrwxrwx 2 deploy deploy 4096 Nov 4 13:37 .<br>drwxr-xr-x 6 deploy deploy 4096 Nov 3 20:06 ..<br>-rw-rw-rw- 1 root root 4 Nov 4 13:37
mongrel.8020.pid<br>-rw-rw-rw- 1 root root 590 Nov 4 13:37 mongrel.log<br>-rw-r--r-- 1 root root 31632 Nov 3 21:20 production.log<br><span style="font-weight: bold;">root$/var/www/apps/thoth/current/log >cat
mongrel.log</span><br>** Daemonized, any open files are closed. 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. TERM => stop. USR2 => restart. INT => stop (no restart).
<br>** Rails signals registered. HUP => reload (without restart). 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 ><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>