How much is the amount of ram used by god, and how much it is increased with the addition of more procesess.
I come from monit, and i am asking why could be god better (more than is ruby).
Thanks.
Another great screencast. Thank you Ryan.
Great as always.. keep up the good work. I like how you do 2-4 relating screencasts in row yet still keep them independent.
Thanks for another great screencast. Question: if you have multiple rails projects on a given server, do you suggest running multiple instances of god (one for each rails application)? Or would you then move the config file outside of the rails config folder and place it somewhere else on the server and run only one instance of god?
Great screencast! God is one of those tools that I've looked at, but haven't really had a reason to use yet, but wanted to.
Am I too late to add the obligatory "Of *course* God isn't compatible with Windows!" comment?
Is it just me or does this seem like you are just sweeping the dirt under the rug?
If your background processes are consuming too much memory, or constantly shutting down, wouldn't it be smarter to find out why, instead of just having a script restart it?
Something like this just seems to promote bad programming practices / laziness.
way to step up ryan and create an excellent railscast on God process monitoring. more people need to become familiar with its awesomeness.
might i also add...jesse newland has created an awesome rails plugin called san_juan. use it for capistrano god recipes.
get it here: http://github.com/jnewland/san_juan/tree/master
@Guillermo, that's a good question. On my setup it uses about 8 MB of RAM, so if you're running on a VPS with very limited memory you may want to use Monit.
@Francois, I'd just use one God process for the entire server (multiple Rails apps). This is one reason I prefixed the watch names with "mailit" so we could easily add other apps without conflict. It's easy to load as many config files as you need.
# all.god
load '/path/to/mailit.god'
load '/path/to/foo.god'
load '/path/to/bar.god'
Then just run "god -c /path/to/all.god" to load them all.
@Ben, I agree in some sense. I encourage everyone who uses this kind of tool to closely monitor the logs and set up a notification to warn you when something goes down. If a process is having to restart constantly then that should be fixed.
That said, I think this still has a very important role. Think of it as the net under the trapezist. It's not part of the act, but it's there if the unthinkable happens.
Hi,
Yet another great cast.
Testing this on Centos 5 I had to do
script = "export RAILS_ENV=production && #{RAILS_ROOT}/script/workling_starling_client"
If I didn't the workling startup process just failed...
Nice work Ryan but single-letter variables are evil. They lack clarity and promote laziness.
Thanks for a great tutorial!!!
Is there a way to start god automatically with the rails application, without any need for for external commands?
@Zach,
Normally I'd agree with you, but inside of a block I'd say single letter variables are fine, since they have a very limited context. I suppose in a complicated example I'd also agree with you, but with every line starting the same way in the block, this seems like the closest you can get to DRY in a block context (correct me if I'm wrong).
Maybe I'm just paranoid — but whats stopping God from dying? (if your possibly expecting your daemons to go down, it would be kind of ignorant to expect God to stay up 100% of the time I would think?)
But very good episode Ryan, thanks!
Good screencast but what a pity you didn't talk about mail notifications.
The code you show up is on god homepage, your explanation is a real bonus but I think it lacks a bit of "advanced use".
Never mind, I am a fan of your screencasts, it helps so much to improve my RoR skills that I just "want more" I guess ;)
Thanks for another great railscast.
What are the advantages/disadvantages between God and monit? Anyone?
Cheers.
Another nice one Ryan.
I originally used an init script to start god and load all config files under a specific directory (as per my blog post a while ago).
I'm now thinking that you could start up a god process in inittab, use respawn to keep it alive, and use the init script to load/unload the monitors.
Decisions, decisions.
When i try starting the god process i get the following error:
The server is not available (or you do not have permissions to access it)
Any ideas?
@Hari
you have been denied by god!
On a more serious note, check to make sure that it has +x access.
We've been using God (0.7.8) to monitor a couple applications all running on Thin. The awesome bit with God is that it brings process back almost instantly. For example if we request a restart (thin -C path/to/config restart) it will usually catch the fact that they went down and bring them back up before Thin can finish the restart. This is an order of magnitude faster than we were seeing with Monit.
The only issue we've had so far with God is that it appears to have a memory leak (using Ruby 1.8.6-p114). Every now and again we'll notice it's running with 3g of virtual memory and taking up 100% processor. We've been able to solve this though by restarting god nightly (hooray cron).
We have played with the idea of having Monit monitor God but haven't gotten around to actually trying it.
Hola, como estas, queria felicitarte por tu pagina, esta muy buena, si queres pasa por mi pagina y dejame un comentario, estan entrando mucho en mi sitio, si te interesa podemos hacer un intercambio de links, banners, cualquier cosa avisame, te dejo mi email tvinternet08@gmail.com, te mando un abrazo.
why not check out <a href="http://www.3zoom.com">Warhammer gold</a> at 3zoom? i think it might be better.
<a href="http://www.3zoom.com">Warhammer online gold</a>,
<a href="http://www.3zoom.com/war-all/cheap-powerleveling-5-all.html">warhammer online powerleveling</a>,
<a href="http://www.3zoom.com/war-all/cheap-powerleveling-5-all.html">Warhammer Powerleveling</a> as well
<a href="http://www.3zoom.com/war-all/cheap-account-5-all.html">Warhammer online account</a><br />
<a href="http://www.3zoom.com/war-all/cheap-account-5-all.html">Warhammer online accounts</a><br />
<a href="http://www.3zoom.com/uswarhammer-all/warhammer-account-5-all.html">Warhammer account</a><br />
<a href="http://www.3zoom.com/uswarhammer-all/warhammer-account-5-all.html">Warhammer accounts</a>
Are you a WAR player?Do you need <a href="http://www.gmbar.com/"> Warhammer Gold </a> ? If your answer is yes,please come here. We are professional, loyal and reliable and have been a paypal confirmed seller of MMOG service for years. So it is securest and safest to buy from us. We also have <a href="http://www.gmbar.com/"> Warhammer Time Card </a>, <a href="http://www.gmbar.com/"> Warhammer CD Key </a>,<a href="http://www.gmbar.com/cheap-war-gold.php">Warhammer Power Leveling</a> and <a href="http://www.gmbar.com/cheap-war-gold.php"> Warhammer Accounts </a>,etc.Our world class customer service will make you satisfied.If you live in Europe, you can buy <a href="http://www.gmbar.com/cheap-war-gold-eu.php"> Warhammer EU Gold </a>from us ,too.Our price is competitive, We guarantee lowest price and professional services. Choose Us, Don’t be irresolute! We are ready to serve you and help you to have a wonderful WAR life.
<p><a href="http://www.gamevive.com/Warhammer/cheap-Warhammer-gold/Warhammer-Anlec(Oceanic)-24-2093-Order.html"> Buy WAR gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/cheap-Warhammer-gold/Warhammer-Anlec(Oceanic)-24-2093-Order.html"> Cheap Warhammer Gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/cheap-Warhammer-gold/Warhammer-Anlec(Oceanic)-24-2093-Order.html"> Buy warhammer online gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/cheap-Warhammer-gold/Warhammer-Anlec(Oceanic)-24-2093-Order.html"> cheap warhammer online gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/cheap-Warhammer-gold/Warhammer-Anlec(Oceanic)-24-2093-Order.html"> Buy warhammer gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/cheap-Warhammer-gold/Warhammer-Anlec(Oceanic)-24-2093-Order.html"> buy warhammer online gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/cheap-Warhammer-gold/Warhammer-Anlec(Oceanic)-24-2093-Order.html"> buy cheap warhammer gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/Warhammer-Gold/Cheap-Warhammer-Gold.html
"> War Gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/Warhammer-Gold/Cheap-Warhammer-Gold.html
"> Buy Warhammer Gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/Warhammer-Gold/Cheap-Warhammer-Gold.html
"> Warhammer Online Gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/Warhammer-Gold/Cheap-Warhammer-Gold.html
"> Warhammer Gold for sale </a></p>
<p><a href="http://www.gamevive.com/Warhammer/Warhammer-Gold/Cheap-Warhammer-Gold.html
"> Cheap Warhammer Gold </a></p>
<p><a href="http://www.gamevive.com/Warhammer/Warhammer-Account/Cheap-Warhammer-Account.html
"> Warhammer Accounts </a></p>
<p><a


