Forum: Cfengine Help
Subject: Re: evaluation of variables
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18954,18968#msg-18968

I don't want to change my user name because it's my actual first name. I would 
write it camelcase and it much less funny or meaningful in german anyway 
although I know it's funny in english.

You might not see it 16 times because I only presented a snipped of whole 
configuration. I'm very capable of reading strace's output and I'm aware that 
it's a beta release I just ask to understand why the command is execute that 
many times. My current configuration doesn't have that many lines but a single 
cf-agent run currently forks 59 child processes so I'm a little bit worried 
about scalability. Maybe it will fork tens of thousand child processes once the 
configuration reaches a size it's used to monitor a simple setup.

It just looked like cf-agent would evaluate all the common bundles each time it 
enters each agent bundle during its lifetime which is quite short. Cf-agent is 
not a daemon which would monitor the system over time making it really 
necessary to re-evaluate it's variable set. And even if there are cases then 
re-evaluation is necessary the common functional approach would be using a map 
and defer evaluation as long as possible and cache results of specific variable 
instances.

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

Reply via email to