Forum: CFEngine Help
Subject: Re: Long running shadow file edits?
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,23516,23520#msg-23520

Are there a relatively large number of users being edited?  I've noticed that 
performance seems to drop substantially when looping results in a large number 
of bundle calls, and assuming $index is a list iterator, that could be related.

By "large number" I'm talking about a couple hundred, which realistically isn't 
a very large number.  But on systems where I have over 200-ish accounts, it 
takes an additional minute+ to just iterate over the list of user homedirs 
defined in an array.  This is significant given that a few thousand other 
promises only take a minute or so to set/verify.  I saw similar behaviro when 
trying to find a way to process ~14K files; performance went to the crapper 
when I put the processing of each file into a parametrized bundle.  When I 
modified the logic so I passed in the list rather than individual elements, 
though... Well, it still wasn't great, but it was acceptable.  From those few 
experiences, it seems that iteration within one bundle is ok, but iteration 
over multiple bundles (which seems to include file editing) will kill you.

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

Reply via email to