Forum: CFEngine Help
Subject: Re: cf-exced ignores splaytime on syntax errors / unleash the stampede
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,24225,24246#msg-24246

Ok, looking at Neil's example, I figured out what I had misconfigured...

I had included my body executor control statement to configure cf-execd in 
promises.cf only.  I did not have this configuration in failsafe.cf.  I assume 
what happened is that when promises.cf gets jacked up, this ends up causing 
splaytime to set to zero.

In fact, it seems that you dont really need the body executor control body 
promise included in promises.cf at all.  I uncommented out the import 
statement, and cf-execd seems to be operating fine.  At the end, I suppose 
it'll be safe to just import the same external cf-execd.cf file, where I keep 
my body executor control promise.  That way, even if there is a modification to 
it, both failsafe.cf and promises.cf will inherit the same changes.

So, if you're configuring cf-exced via promises.cf, I suggest you move this 
into a input in failsafe.cf if you rely on splaytime to be functional.  
Otherwise, your infrastructure _will_ get jacked up on the first syntax error 
in your production environment.  

Thanks Neil for the example.  It helped me understand what was going on.  And 
thanks sauer for the splayclass example.  I'll have to think more about your 
setup to see how I can better incorporate those changes into our infrastructure.

Cheers guys.  Really appreciate the help.  This ended up solving a major 
reliability issue for us.  +1 for the Cfengine community.

Mike

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

Reply via email to