Welcome Guest | Login

Ghost processes?

Hi,

I'm playing around now with getting my Mongrel cluster to use four processes instead of two on my dedicated server, and I'm not quite sure what's happening.  When I issue mongrel_rails cluster::stop, it reports:

already stopped port 40000
already stopped port 40001
already stopped port 40002
already stopped port 40003

But when I type in the site IP, it still serves content.  I also killed each of the mongrel processes one by one before I did the cluster stop.  None of them are listed when I try 'ps' in a console.  How is content still being served, and how can I kill these processes and actually restart the cluster?

Thanks :)

2008-04-27 05:38 PM

One other quick question:

I'm following the tutorial on setting up a mongrel cluster, and have gotten to the part where I edit the crontab.  I guess since I'm on a dedicated server, it already has some mysterious stuff in it.  Should I not edit the file, append what I need to add to the end of it, or just replace it altogether?

2008-04-27 05:43 PM

Hi - On your server you need to configure the Mongrel as the  user and not as root. Please login to the server as a user and try starting the mongrel.

Also regarding the Crontab - you need to log to the server as the user to set it up

As root you can list the crontab of the user using the command

crontab -l -u <username>

And edit the crontab using the command

crontab -e -u <username>

2008-04-27 06:49 PM

HostingRails Support
I did configure the mongrel as the user and not the root, but I did it again to make sure.  What I did now was log in as root, then tried 'ps aux | grep ruby', and it showed two mongrel processes already running under root.  I assume these were the two processes serving content while the user Mongrel processes were not running.  So, I killed them.  Then I su'd into the user and did mongrel_rails cluster::start, and the user Mongrel processes started right up.  So now the only Mongrel processes running are those of the user.  Now, however, navigating to my IP gives a 503 Service Temporarily Unavailable error.  So it seems that the IP is somehow linking to an expected root Mongrel cluster instead of the user one.  How do I fix this?

2008-04-27 07:05 PM

Hi - Now you need to change port numbers in your apache configuration file. Open the file

/usr/local/apache/conf/userdata/std/2/<username>/<domain-name>/custom.conf

In this file you will be able to see entires like

BalancerMember http://127.0.0.1:4****

There you need to add more entires following the same pattern. (for each mongrel) Make sure to replace the **** with the correct port numbers. Restart apache after making the changes

Please let us know if you need any further assistance on this.

2008-04-27 07:17 PM

HostingRails Support
Hi again,

I added the two additional processes to the file and restarted apache.  I'm still getting a 503 at http://208.101.54.41/.  The four Mongrel processes are running under the user.

2008-04-27 07:26 PM

Hi - The port numbers were not correctly configured in the custom.conf. I have made the required changes and the site seems to loading fine now. Please verify,

2008-04-27 07:39 PM

HostingRails Support
Thanks for your help.  If you remember, what was wrong in the config file?

2008-04-27 08:25 PM

Hi - The Port numbers mentioned were wrong. You had given 4000 instead of 40000.

2008-04-27 08:31 PM

HostingRails Support
Rats, I was sure I had those right.  Thanks again!

2008-04-27 09:07 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.