Nitesh Goel | 9 May 21:16
Gravatar

Monitoring Unicorn Workers with God

There seems to be no easy to way monitor unicorn workers with god. Github has a hack, where they use a separate thread to monitor the workers, but the post is two and a half years old (https://github.com/blog/519-unicorn-god).


Have things changed since?

--
You received this message because you are subscribed to the Google Groups "god.rb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/god-rb/-/_9KkaGL228sJ.
To post to this group, send email to god-rb-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to god-rb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.
Nitesh Goel | 7 May 10:47
Gravatar

Different restart commands based on the restart condition

Hey Guys

I am monitoring a process where my restart command is based on the restart condition failed. E.g.

If memory usage too high:

w.restart = "command 1"

if cpu usage too high:

w.restart = "command 2"

Is there a way to configure a watch as such?

Thanks.

--
You received this message because you are subscribed to the Google Groups "god.rb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/god-rb/-/bgMHE_OZ-rcJ.
To post to this group, send email to god-rb-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to god-rb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.
Guang-Nan Cheng | 6 May 11:07
Picon
Gravatar

God-rb doesn't auto-daemonize unicorn well?

God stores a wrong pid for auto-demonizing unicorn. I can get things working by set the pid file on both unicorn and god. But do I have to do it this way? Why god doesn't auto-daemonize unicorn well?

--
You received this message because you are subscribed to the Google Groups "god.rb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/god-rb/-/ZnlrNcyGI50J.
To post to this group, send email to god-rb-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to god-rb+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.
Stefan Adamov | 26 Apr 01:28
Picon
Gravatar

god overwrites ".kilobytes" in Rails

Setup:

Gemfile
gem 'god'

rails c
irb: warn: can't alias exit from irb_exit
> 5.megabytes
=> 5120

work fine if I follow https://github.com/mojombo/god/issues/32

Gemfile
gem 'god', :require => false

rails c
> 5.megabytes
=> 5242880

--

-- 
You received this message because you are subscribed to the Google Groups "god.rb" group.
To post to this group, send email to god-rb@...
To unsubscribe from this group, send email to god-rb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.

Gitted | 17 Apr 15:42
Picon
Gravatar

how to start the process

How does godrb actually start, is there a ubuntu init script that
starts the process and makes sure it starts upon reboots?

--

-- 
You received this message because you are subscribed to the Google Groups "god.rb" group.
To post to this group, send email to god-rb@...
To unsubscribe from this group, send email to god-rb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.

Toan Nguyen | 6 Apr 05:36
Picon
Gravatar

[fail] never received process exit event

Hi everybody,

I'm a newbie to God. I install and run God on Ubuntu system is fine.

But I get problem when run God on Debian. Run "god check", I got
message: "[fail] never received process exit event".

My system info:

No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 6.0.4 (squeeze)
Release:	6.0.4
Codename:	squeeze

Linux breithorn 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012
x86_64 GNU/Linux

I have checked cn (connector) kernel module by "lsmod | grep cn":

cn                      4563  0

I don't know why it can't check process exit event.

--

-- 
You received this message because you are subscribed to the Google Groups "god.rb" group.
To post to this group, send email to god-rb@...
To unsubscribe from this group, send email to god-rb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.

Sheng LUO | 2 Apr 15:20
Picon
Gravatar

monitor chrome with god

hi there,


My ubuntu runs on 1G ram, where chrome always get fronzen or crashed because of flash.
So I want to watch my chrome with god and limit the cpu and memory it occupies.
Normally, I can run a chrome by typing "google-chrome" in terminal, so I write following god script:

God.watch do |w|
  w.name = "chrome"
  w.start = "/opt/google/chrome/chrome"
  w.keepalive :cpu_max => 80.percent, :memory_max => 500.megabytes
end

When I start the script above by "god -c chrome.god -D", it just keep opening new chrome.
Doesn't it automatically figure out there is already a chrome running?
What can I do to realize monitoring chrome?

--
You received this message because you are subscribed to the Google Groups "god.rb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/god-rb/-/QzSqOZcU6ZEJ.
To post to this group, send email to god-rb-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to god-rb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.
Picon

non-daemon process using Bundler

Hello,


I'm having a problem with god trying to watch a non-daemon process that is started by "bundle exec".

God starts the process just fine, as seen by ps:

6856 ?        Ss     0:00 sh -c bundle exec rake resque:scheduler >> /home/rails/project_a/shared/log/scheduler.log 2>&1
6860 ?        Sl     0:23 ruby /home/rails/project_a/shared/bundle/ruby/1.9.1/bin/rake resque:scheduler

The problem is that god is monitoring the first process (6856), so that a "god stop" or "god restart" nukes the first process, but the second one remains.

Any ideas?  Thanks for the help.

--
You received this message because you are subscribed to the Google Groups "god.rb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/god-rb/-/W83Awd_b3mkJ.
To post to this group, send email to god-rb-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to god-rb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.
Max Lansing | 29 Feb 08:53
Picon

Test issues on Ruby 1.9.x and OS X Lion

I seem to be unable to complete a rake run with 0.12.1, using Ruby 1.9.2 or 1.9.3 on OS 10.7.3.

It hangs at TestEventHandlerOperational: test_operational, in the God::EventHandler.start call.
Within that method, it's hanging on ::Process.kill('KILL', pid). When kill is called, the child process
is terminated, but sticks around as a zombie, and the kill call never returns.

The tests run normally for me in 1.8.7. 

'god check', which runs similar code, runs fine in 1.9.x.

Can anyone reproduce this issue?

Thanks,

Max

--

-- 
You received this message because you are subscribed to the Google Groups "god.rb" group.
To post to this group, send email to god-rb@...
To unsubscribe from this group, send email to god-rb+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.

Matias | 20 Feb 19:18
Picon

Killing a process doesn't restart

I create the follow solr.god: https://gist.github.com/1870445

The process start fine but if I kill the process, God doesn't restart
the process again. What I miss?

--

-- 
You received this message because you are subscribed to the Google Groups "god.rb" group.
To post to this group, send email to god-rb@...
To unsubscribe from this group, send email to god-rb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.

Favicon

notification on process restart / crash when events are disabled

Hi. I've got a couple of questions:

1) Is this project dead? Does it have an active maintainer who'll be
able to fix bugs?
2) How do I notify our ops team of process restarts or crashes when
god's running with user privileges, thus not having access to events
interface?

Thank you.

--

-- 
You received this message because you are subscribed to the Google Groups "god.rb" group.
To post to this group, send email to god-rb@...
To unsubscribe from this group, send email to god-rb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.


Gmane