If you have many projects, which should monitor the various processes (shpinx, thin, etc.) - It is something that should.
The best way to get god is via rubygems:
sudo gem install god
Copy “config.god” file:
git clone git://github.com/galetahub/simple-god.git
Change constant “APPS_PATH” in “config.god” where your projects in. By default:
APPS_PATH = '/var/www'
To start the god monitoring process:
sudo god -c /path/to/config.god
Now god look at “config/god” folder and load configuration yml files:
rails_root/config/god/*.yml
Create configuration files in your projects (only you need):
"APPS_PATH/your_project/config/god/delayed_job.yml" "APPS_PATH/your_project/config/god/sphinx.yml" "APPS_PATH/your_project/config/god/thin.yml"
Files “delayed_job.yml”, “sphinx.yml” and “thin.yml” you can find in “samples” folder. You can create yml files, naming them as you like, but you must add option service, for example:
rails_root/config/my_config.yml name: job_worker status: on environment: production workers: 10 service: 'delayed_job'
Avariable services:
-
delayed_job
-
sphinx
-
thin
IF you change “/config/god/.yml” files, you need tell about it to god:
sudo god -c /path/to/config.god
* Add more things to monitoring * Make it as a gem * Easy installation
Copyright © 2010 Brainberry, released under the MIT license