bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cfexecd enhancements


From: Bas van der Vlies
Subject: Re: Cfexecd enhancements
Date: Tue, 02 Apr 2002 08:35:49 +0100 (MET DST)

Mark,

 The answer is in this mail I run cfengine 4 times a hour:
  Quarterly     = (  Min00_05 Min15_20 Min30_35 Min45_50  )
  schedule = (  Min00_05 Min15_20 Min30_35 Min45_50 ) 
  IfElapsed = ( 1 )

  With this schedule interval cfagent will run:
    Min00
    Min01
    Min02
    Min03
    Min04 
    Min05

  I thought cfexecd only starts cfagent once in a five minute interval, but
  in my situation this was not true. So that is why i patched cfexecd to make
  sure it only run once in a 5 minute interval!

On 02-Apr-2002 address@hidden wrote:
> 
> How can it not work? Can you give more info?
> 
> M
> 
> On  2 Apr, Bas van der Vlies wrote:
>> I have run it with the verbose flag and i got 4 a 5 emails in a 5 minute 
>> interval. So the lock mechanism did no work for me.
>> 
>>                 Regards
>> 
>> On 28-Mar-2002 Andrews, Martin wrote:
>>> Should work all the time - run cfexecd with the verbose flag. You should
>>> see
>>> cfexecd wake up every minute, but only once every five minutes will it
>>> succeed in acquiring the lock and run cfagent.
>>> 
>>> Martin
>>> 
>>> -----Original Message-----
>>> From: Bas van der Vlies [mailto:address@hidden
>>> Sent: Thursday, March 28, 2002 10:28 AM
>>> To: Martin Andrews
>>> Cc: address@hidden; address@hidden
>>> Subject: Re: Cfexecd enhancements
>>> 
>>> 
>>> 
>>> I'm using version 2.0.0 final, must i use a keyword to activate it?
>>> 
>>> 
>>> On 28-Mar-2002 Martin Andrews wrote:
>>>> I had supplied a patch to Mark that did this limit control using locks. It
>>> 
>>>> had the bonus limiting runs to minimum of 5 minute intervals whether they 
>>>> came from cfexecd or cfservd. I though this patch made it into the final
>>> 2.0 
>>>> release. Just checked and it seems to be there. What version of cfengine
>>> are 
>>>> you using?
>>>> 
>>>> Martin
>>>> 
>>>> On Thursday 28 March 2002 06:45 am, Bas van der Vlies wrote:
>>>>> Mark,
>>>>>
>>>>>  I have a solution to only run cfagent once in a 5 minute interval. Is
>>>>> quite
>>>>>  easy. The patch is included in the attachment.
>>>>>
>>>>>         Regards
>>>>>
>>>>> On 28-Mar-2002 address@hidden wrote:
>>>>> > Cfexecd stuff is one of the next things that I'll be looking at.
>>>>> > I cannot respond to this now, but I'll come back to it. Feel free
>>>>> > to send suggestions, but bear in mind that cfexecd and cfenvd are
>>>>> > the primary focus of my research now, so there will be developments
>>>>> > there.
>>>>> >
>>>>> > M
>>>>> >
>>>>> > On 28 Mar, Bas van der Vlies wrote:
>>>>> >> On 28-Mar-2002 Bas van der Vlies wrote:
>>>>> >>> I'am using the standalone cfexecd-daemon. So that cfexecd can check
>>>>>
>>>>> if cron
>>>>>
>>>>> >>> is
>>>>> >>> running and visa-versa.
>>>>> >>>
>>>>> >>> I run cfagent 4 times an hour with the follwing setup:
>>>>> >>> groups:
>>>>> >>>   Quarterly     = ( Min15_20 Min30_35 Min45_50 Hourly QTest HTest )
>>>>> >>>
>>>>> >>> control:
>>>>> >>>   schedule = (  Min00_05 Min15_20 Min30_35 Min45_50 )
>>>>> >>>   IfElapsed = ( 1 )
>>>>> >>>
>>>>> >>>
>>>>> >>> In this situation cfagent will run about 17 times in a hour. I know
>>>>>
>>>>> i can
>>>>>
>>>>> >>> set
>>>>> >>> IfElapsed = 5 or higher will prevent cfagent to do something. But i
>>>>>
>>>>> only
>>>>>
>>>>> >>> want
>>>>> >>> to
>>>>> >>> run cfagent once in that period. Can this be done?
>>>>> >>>
>>>>> >>> My second remark is if i update the cfagent.conf and in cfagent.conf
>>>>>
>>>>> there
>>>>>
>>>>> >>> is
>>>>> >>> a
>>>>> >>> new schedule,sysadm or smtpserver. It will not be seen until we
>>>>>
>>>>> restart the
>>>>>
>>>>> >>> daemon. Can the cfexecd not reread its variables? It can be easily
>>>>>
>>>>> be done
>>>>>
>>>>> >>> to
>>>>> >>> put the GetCfStuff() function inside the while loop.
>>>>> >>
>>>>> >> I hate to reply to my own message, but the second remark is NOT true.
>>>>> >> cfexecd
>>>>> >> reread its variables after cfagent has run!!
>>>>> >> --
>>>>> >> ********************************************************************
>>>>> >> *                                                                  *
>>>>> >> *  Bas van der Vlies                     e-mail: address@hidden      *
>>>>> >> *  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
>>>>> >> *  Kruislaan 415                         fax:    +31 20 6683167    *
>>>>> >> *  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
>>>>> >> *                                                                  *
>>>>> >> ********************************************************************
>>>>> >>
>>>>> >> _______________________________________________
>>>>> >> Bug-cfengine mailing list
>>>>> >> address@hidden
>>>>> >> http://mail.gnu.org/mailman/listinfo/bug-cfengine
>>>>> >
>>>>> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>> > Work: +47 22453272            Email:  address@hidden
>>>>> > Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
>>>>> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> 
>>>> -- 
>>>> Martin Andrews
>>>> LION bioscience Inc.
>>>> address@hidden
>>> 
>>> --
>>> ********************************************************************
>>> *                                                                  *
>>> *  Bas van der Vlies                     e-mail: address@hidden      *
>>> *  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
>>> *  Kruislaan 415                         fax:    +31 20 6683167    *
>>> *  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
>>> *                                                                  *
>>> ********************************************************************
>> 
>> --
>> ********************************************************************
>> *                                                                  *
>> *  Bas van der Vlies                     e-mail: address@hidden      *
>> *  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
>> *  Kruislaan 415                         fax:    +31 20 6683167    *
>> *  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
>> *                                                                  *
>> ********************************************************************
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  address@hidden
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 

--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: address@hidden      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
*                                                                  *
********************************************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]