Maybe using the "agent" class?  That seems to be set when I run
'cf-agent', but not 'cf-promises' (running svn r4121).


On Thu, Mar 8, 2012 at 17:34,  <no-re...@cfengine.com> wrote:
> Forum: CFEngine Help
> Subject: Any way or class that can be used so cf-promises doesnt execute 
> modules?
> Author: msvob...@linkedin.com
> Link to topic: https://cfengine.com/forum/read.php?3,25207,25207#msg-25207
>
> So a few weeks ago I wrote a post about how to query an external datasource 
> and allow persistance using a JSON object on the filesystem:
> https://cfengine.com/forum/read.php?3,24968
>
> We went into production with this, and I'm hitting an annoying issue.   
> Currently, we execute cf-execd in foreground via cron at minute zero:
>
>
> 0 * * * * /var/cfengine/bin/cf-execd -F
>
>
>
> When cf-exced fires at minute zero, its executing cf-promises immediatly 
> without waiting for splaytime.  cf-promises in turn, executes all modules.  
> This in turn, is causing our infrastructure to get hit with 8000+ requests at 
> minute 0, even though cf-agent waits for splaytime to expire before firing 
> (which then executes the module a second time for real, which is the behavior 
> I'm trying to achieve.)
>
> Is there an option, class, or something else I can use to avoid firing this 
> module during cf-promises execution when cf-exced wakes up?   I only want to 
> execute the module when cf-agent fires.
>
> How often does cf-promises get executed when cf-exced is executing as a long 
> running daemon?   I really only want to execute this module when cf-agent 
> runs.  Any help / tips would be appreciated on how I could work around this 
> issue.
>
> Thanks!
> Mike
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine



-- 
Jesse Becker
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to