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
1
vote
1 answer

Managing unicorn instances / rails deployment

my head hurts today! :) I need some help with rails deployment. I migrated from cherokee to nginx and well, I migrated my django apps easily. I just have to launch uwsgi to get a tcp socket and run my app. So I use supervisord to start / stop uwsgi…
Jesus Rodriguez
  • 11,918
  • 9
  • 64
  • 88
1
vote
1 answer

What is the proper way to terminate non-daemonized processes with god?

I have a class that I am monitoring using god. This is it's structure: lib/my_class.rb #!/usr/bin/env ruby class MyClass def start(config) loop do EventMachine::run do end end end begin config = {"foo" => "bar"}…
David
  • 7,310
  • 6
  • 41
  • 63
1
vote
1 answer

How to configure god/redis for two environments?

I want to use god to monitor my redis server. The problem is that they are in different locations locally and on my server. I tried doing something like this but this causes god to fail. %w{6379}.each do |port| God.watch do |w| w.name =…
David
  • 7,310
  • 6
  • 41
  • 63
1
vote
2 answers

Kill hung unicorn worker processes?

I am currently running a large rails application on a virtual server. My setup uses Unicorn to serve the Rails App with nginx as the proxy server in front. Occasionally I get notifications that My CPU usage has pegged for a long amount of time.…
demersus
  • 1,185
  • 2
  • 10
  • 24
1
vote
3 answers

God won't start Resque workers: rake aborted! non-absolute home

I'm getting the following error in log/resque-0.log: rake aborted! non-absolute home /srv/myapp/current/Rakefile:4 If I start a worker manually using the same command God uses, it starts up just fine: QUEUE=* RAILS_ENV=production /usr/bin/rake -f…
Jarin Udom
  • 1,849
  • 3
  • 19
  • 23
1
vote
1 answer

Getting info from the monitored process

I am using god to monitor my delayed jobs. currently I suffer from exceeded memory consumption from time to time, I've set god to restart jobs exceeding 100MB. my question is: is there a way to get information from the current running job before…
Ran
  • 3,455
  • 12
  • 47
  • 60
1
vote
1 answer

RVM wrapper for God: ERROR: Binary 'god' not found

I'm trying to set up an RVM wrapper for God, but I'm having trouble getting it to work correctly. God is in my path, but it claims it can't find the binary. Did I misconfigure something? root@hostname:~# rvm info ruby-1.9.2-p180: system: …
m818
  • 888
  • 8
  • 7
1
vote
2 answers

Using god with RVM

I am using RVM and wish to use god. I have it working on my local machine which has a very similar set up to my remote server (RVM, ruby 1.9.1, rails 3.0.3.) On my local machine I did: rvm wrapper uploader bootup god This created a file in…
Gazler
  • 83,029
  • 18
  • 279
  • 245
1
vote
1 answer

How to capture process output using God?

Trying to get a simple God demo working. In an empty directory I created the following files as per the God documentation: simple.rb: loop do puts 'Hello' sleep 1 end simple.rb: God.watch do |w| w.name = "simple" w.start = "ruby simple.rb" …
Yarin
  • 173,523
  • 149
  • 402
  • 512
1
vote
0 answers

How to notify from god only on process crash?

I'd like to get a notification from god when a process stops as a result of an error, but not otherwise. I'm looking for behavior like this example from doc/god.asciidoc: w.transition(:up, :start) do |on| on.condition(:process_exits) do |c| …
Mori
  • 27,279
  • 10
  • 68
  • 73
1
vote
0 answers

Existing "God" won't load and monitor correctly

Very simple question. Is this by design, or a bug?. First, I have a very simple ruby script that waits 5 seconds, then throws an Exception. #t.rb# sleep 5 raise 'ex' And a god config file of #numanagedev.conf# God.watch do |w| w.name =…
1
vote
0 answers

Running puma from god configuration file is giving no application configured error

Hi i am using god to monitor the processes. I want to monitor puma. The problem is it is giving me this error: 'ERROR: No application configured, nothing to run' on starting puma. Same command when i am using manually, puma is starting up…
1
vote
2 answers

What is the best way to manage resque jobs?

I am new to queueing systems. I am using resque with my current app and I have three queues to monitor. I wonder what is the best way to run and manage resque jobs. The reason for the question is that I am slightly confused with so many options…
Rahul
  • 442
  • 6
  • 17
1
vote
0 answers

Can god run and monitor processes for multiple environments on the same machine?

I have a staging and development environment of a rails app on the same machine. Both us god to run and monitor a few processes. I've set up a god service that starts/stops/restarts the god process. It starts the process by running the following…
oppositeday
  • 113
  • 1
  • 5
1
vote
1 answer

Resque Runtime Error at /workers: wrong number of arguments for 'exists' command

I'm having a runtime errror when i'm looking at the "workers" tab on resque-web (localhost). Everything else works. Edit: when this error occurs, i also have some (3 or 4) unknown workers 'not working'. I think they are responsible for the error but…
Superflux
  • 21
  • 5
1 2 3
8 9