Questions tagged [god]

God is a Ruby process monitoring framework designed to keep processes up and running.

God manages the entire lifecycle of a running process. It handles starting, stopping, and restarting process, and it also monitors the processes and restarts them if they exit or an error occurs. Similar tools are runit and monit.

The source code and documentation can be found on God's rubyforge page or on Ruby gems. The current version is 0.13.2.

121 questions
3
votes
1 answer

God - starting new process while existing process is still stopping

Using God (godrb.com) I'm trying to write a recipe that starts up a new process regardless of the status of an existing process when deploying an application. The existing process needs to have a long running timeout for it to finish current tasks,…
bensie
  • 5,373
  • 1
  • 31
  • 34
3
votes
0 answers

What am I doing wrong trying to monitor a Tweetstream daemon with God?

I'm trying to monitor a tweetstream daemon with God.. my god config is very simple: path = File.expand_path(File.dirname(__FILE__)) God.watch do |w| w.name = "tweet.rb" w.start = "bundle exec ruby #{path}/tweet.rb start" …
Inc1982
  • 1,955
  • 1
  • 18
  • 32
3
votes
4 answers

How do I write a Resque condition that says "if a process is running for longer than n seconds, kill it"?

I have a god/resque setup that spans a few worker servers. Every so often, the workers get jammed up by long polling connections and won't time out correctly. We have tried coding around it (but regardless of why it doesn't work), the keep-alive…
Eric Lubow
  • 763
  • 2
  • 12
  • 30
3
votes
1 answer

Monit to watch over God?

We're using God to monitor our server processes, and were wondering if we should use something like Monit to make sure God gets up if something unexpected happens. A quis custodiet ipsos custodes? conundrum :) Googling for it didn't bring any…
oliverbarnes
  • 2,111
  • 1
  • 20
  • 31
3
votes
1 answer

Resque: how can i use specific worker for only one specific queue

in my rails 5 app i use resque and resque-scheduler for sending message to my customer.for that i created different different queue for messages and created 3 worker for sending message using queue. so, here my question is how can i use one specific…
3
votes
1 answer

Emails notifications are not sent from the God gem

I use the God gem to monitor my delayed_job processes, so far the gem is doing its job as it should but from some reason I can't get him to send email notifications (i use google apps). Here are my god file…
Ran
  • 3,455
  • 12
  • 47
  • 60
3
votes
1 answer

Custom God logging?

God has helped us keep a few services running on a Rails box (Nginx and MySQLd, specifically) but I'm hoping to get some more details when it actually swings into action. So far, setting the watch log file using w.log = /var/log/god/mysql.log (for…
pjmorse
  • 9,204
  • 9
  • 54
  • 124
3
votes
0 answers

Monitoring JRuby processes using god gem

Is it possible to monitor jruby program using God ruby gem ? Any working example will be helpful. Here is what I've tried so far but it doesn't work. Here is the God file start_app.god God.watch do |w| w.name = "simple" w.start = "jruby…
Sam Samson
  • 927
  • 4
  • 20
  • 35
3
votes
1 answer

sidekiq true god.rb never runs my workers, where same command from terminal does?

Running god.rb to start and monitor Sidekiq this does not work. Below my god config for sidekiq. Running sidekiq -C /srv/books/current/config/sidekiq.yml manually from terminal on production does work fine, but not the sidekiq god.rb config anyone…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
3
votes
1 answer

God Gem Starts a Watch if I use w.keepalive but not if I use $god sidekiq start

I'm struggling with using Sidekiq alongside the God Gem. I would like to be able to start the sidekiq process manually, using $god start sidekiq, however this fails to start the process. I can only get it to start the sidekiq process if I set…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
3
votes
1 answer

God (the ruby process manager) is constantly restarting my process

This is probably a fairly newbie fix so apologies in advance. I have a simple process that I want to control with god. The process at this stage is basically just loop do; sleep 1; end. The config file is bare minimum: God.watch do |w| w.name =…
mattfitzgerald
  • 353
  • 2
  • 14
3
votes
1 answer

"god" not starting resque worker

I'm having some trouble getting the god gem up and running. I've essentially copied the config file from Github but it doesn't seem to be starting the resque worker properly. My config file looks like the following: rails_env =…
Haronious
  • 121
  • 10
2
votes
3 answers

God messing with Date Operations

This is a weired think. Follow my steps: Without god, on console: > d=Date.parse("2010-02-01") => Mon, 01 Feb 2010 > d+1.day => Tue, 02 Feb 2010 Perfect. Then, I go to my Gemfile and add gem 'god' and run bundle install After that, on console…
robertokl
  • 1,869
  • 2
  • 18
  • 28
2
votes
1 answer

Monitoring several delayed jobs using god

So far I've been monitoring a single delayed job using god and its been working great. I want to start monitoring several delayed jobs, how can I pass a parameter when stating god that will indicate how many delayed_jobs god should monitor/start?
Ran
  • 3,455
  • 12
  • 47
  • 60
2
votes
2 answers

Rubygem God: Time limit configuration for process

I am using resque, resque-scheduler gems in my rails app. To monitor the working of resque workers, I am using God tool. I want to add such a god configuration, which will monitor the time of job running in the resque worker. If process execution…
1
2
3
8 9