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
2
votes
1 answer

Monitoring redis with god - monitoring conditions

Im trying to monitor redis with god but god tries to restart it even though its already running. This is my .god script (ported from http://blog.thomasmango.com/post/636319317/resque-in-production): # Redis %w{6379}.each do |port| God.watch do…
phlegx
  • 2,618
  • 3
  • 35
  • 39
2
votes
0 answers

Using godrb with delayed_job pools

I want to start a delayed_job using multiple pools (4) each pool can take a certain type of jobs and one last for everything (in order to prioritize quick tasks and let longer run on separate pools). This is the command ran : /bin/bash -c 'cd…
kitensei
  • 2,510
  • 2
  • 42
  • 68
2
votes
1 answer

delayed_job monitored by God - duplicate processes after restart

I'm monitoring delayed_job using God. This is my God config file. QUEUE = "slow" WORKERS = 14 WORKERS.times do |num| God.watch do |w| w.name = "dj.#{num}" w.group = "tanda" w.uid = 'deployer' w.gid = 'deployer' …
Alex Ghiculescu
  • 7,522
  • 3
  • 25
  • 41
2
votes
1 answer

Graceful way to restart resque workers

Is there a graceful way to restart resque workers(say after an event like deploy) where the worker which was processing some job from the queue doesn't get killed by a signal like SIGTERM or SIGKILL immediately, rather it should wait for the worker…
erosenin
  • 1,052
  • 10
  • 22
2
votes
1 answer

uninitialized constant Redis (NameError)

I have a RoR application that I'm monitoring with god. I can start the unicorn server without problems using unicorn -E production -c config/unicorn.rb and everything works fine. Although when I try to start the server using god like this god start…
lulezi
  • 831
  • 7
  • 15
2
votes
0 answers

Capistrano deployment, god start showing error

I have used Rails 4 I am using gem 'god' for restarting sidekiq if server crashes. But after deploying through capistrano getting error. The server is not available (or you do not have permissions to access it) I have tried with different…
Debadatt
  • 5,935
  • 4
  • 27
  • 40
2
votes
0 answers

Problems with god

So I have problems starting god reliably. I might need to restart multiple times before everything succeeds. OSX 10.6.8 Ruby 1.9.3-p236 god 0.13.2 I have a configuration file where I specify monitoring of two processes like this: bindir =…
murrekatt
  • 5,961
  • 5
  • 39
  • 63
2
votes
1 answer

How to configure Ruby God to monitor > 1 process?

I am using the God gem to monitor my processes, and I already have setup a watch for 1 process in a file like this (named config.god) rails_env = ENV['RAILS_ENV'] || "development" rails_root = ENV['RAILS_ROOT'] ||…
Henley
  • 21,258
  • 32
  • 119
  • 207
2
votes
1 answer

Resque does not find ffmpeg

I am using resque to queue some encoding jobs. I have workers that pick up these jobs and do some transcoding. The issue is system "mencoder .." works fine but system "ffmpeg .." throws not found and the same to with system "qt-faststart .." I…
d33pika
  • 1,997
  • 14
  • 24
2
votes
2 answers

Does not recognize that resque worker has been started

I have a problem running resque workers from god. Here is my god config num_workers = 9 queue = '*' current_path = "/u/apps/narg/current" God.pid_file_directory = "/u/apps/narg/current/tmp/pids" num_workers.times do |num| God.watch do |w| …
Robin Kara
  • 21
  • 1
2
votes
2 answers

Use God with multiple applications and start them automatically after a reboot

I'm currently trying to monitor various processes/daemons of in total three Rails/Rack Applications using god. Monitoring works great, the problem is that i'm not able to configure god to autostart all processes after a reboot. My Setup: I'm running…
Jlz Shoe
  • 21
  • 1
  • 3
2
votes
3 answers

using god monitoring for sidekiq workers

I have been looking for the configuration on how to start sidekiq using the god monitoring system. Below is the god file i use to start sidekiq. rails_env = ENV['RAILS_ENV'] || "production" rails_root = ENV['RAILS_ROOT'] ||…
user1166925
  • 27
  • 1
  • 6
2
votes
3 answers

God resque start gives "The server is not available"

I'm having trouble figuring out how to get God to restart resque. I've got a Rails 3.2.2 stack on a Ubuntu 10.04.3 LTS Linode slice. Its running system Ruby 1.9.3-p194 (no RVM). There's a God init.d service at /etc/init.d/god-service that…
2
votes
0 answers

Custom "action" with God?

We actually use God in our development environment, as well as in production, simply because it makes managing unicorn/resque etc simpler. I've just scaled down our default unicorn config to a single worker in dev, as most of the time this is…
d11wtq
  • 34,788
  • 19
  • 120
  • 195
1
vote
1 answer

Managing multiple instances of Resque and Redis

I am trying to have God monitor two instances of Resque, one for production and one for staging. So I start two Redis instances on system boot: redis_6379 and redis_6380. Then I'm using Daemontools to start and monitor God. My God script looks…
99miles
  • 10,942
  • 18
  • 78
  • 123
1 2
3
8 9