Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
flapping does not work with 0.11.0 on Linux for non daemon process
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tilo Prütz  
View profile  
 More options Jan 15 2011, 3:11 am
From: Tilo Prütz <t...@pruetz.net>
Date: Sat, 15 Jan 2011 09:11:57 +0100
Local: Sat, Jan 15 2011 3:11 am
Subject: flapping does not work with 0.11.0 on Linux for non daemon process

Hi,

I am using god 0.11.0 on a Gentoo Linux for monitoring a non daemon
process and have the same symptoms as in
http://groups.google.com/group/god-rb/browse_thread/thread/41c7bc1329...
(which I can't continue).

The :flapping condition does some logging but the process is flapping
forever.

I tracked it down a little bit and found out, that the :flapping
condition enqueues a driver operation due to the trigger call in
Flapping#process (line 74 of god/conditions/flapping.rb). This driver
operation is always in a queue with two driver events (for
:process_running and :tries) which will be handled first.
The handling of the :process_running event then leads to a clean up of
the events list and the driver operation of the :flapping condition is
never been processed.

I am not deep enough into the code to understand how it is intended to work.
Could anyone help or give a clue where to dig further?

Thanks

  god.conf
1K Download

  god.log
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
captainf  
View profile  
 More options Jan 17 2011, 3:14 am
From: captainf <capta...@dds.nl>
Date: Mon, 17 Jan 2011 00:14:07 -0800 (PST)
Local: Mon, Jan 17 2011 3:14 am
Subject: Re: flapping does not work with 0.11.0 on Linux for non daemon process
Hi,

> The handling of the :process_running event then leads to a clean up of
> the events list and the driver operation of the :flapping condition is
> never been processed.

I patched it like this
#
# this patch is a solution against the over active Driver.clear_events
# PollConditions associated with the lifecycle part of the
configuration
# should not be removed from the event queue.
# Instead of tracing which events need to be kept, it reschedules the
associated
# conditions (lifecycle metrics <= Task.metrics[state] where state =
nil)
#

module God
  class Driver
    def lifecycle_conditions
      metrics = @task.metrics[nil] unless @task.nil? ||
@task.metrics[nil].nil?
      metrics ||= []
      return metrics.map{|m| m.conditions}.flatten.uniq
    end
    def clear_events

      @events.clear
      lifecycle_conditions.each {|lc| schedule(lc) if
lc.respond_to? :interval}
    end
  end
end


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »