On Tue, Dec 3, 2013 at 10:01 AM, Glenn Poston <gposton1...@gmail.com> wrote:
> I was curious how much of an effect the long running external fact was > effecting the timing, so I updated the external fact script to simply echo > the content (instead of fetching it from s3). The facts it produced were > the same as if it had fetched the facts from S3. > > I then introduced a 'sleep x' before the echo statement in the script. > Now we see some compounding delays. I think this adds a bit of support to > the theory that puppet is unnecessarily re-evaluating facts, but it appears > that facter may have some compounding delays as well. > > Bottom Line: > > When the script resolves instantaneously (echo statment only) > script takes .004s > facter takes .754s > puppet takes 1m > > When the script takes 1s (sleep 1, then echo) > script takes 1s > facter takes 6s > puppet takes 1m12s > > When the script takes 5s (sleep 5, then echo) > script takes 5s > facter takes 30s > puppet takes 2m38s > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/15127c27-91d5-452a-b322-af2b783d42fa%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > This is https://projects.puppetlabs.com/issues/22944. Facter will execute external facts multiple times. I've seen it as little as 6 on Mac and 19 on Windows. We are working on a fix for this to be released in 1.7.4. Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA%2Bu97u%3DC0OSukwjabDBUegG%2BaYyFFGJY2qd%2BFBPYAsBf9YG%2BFg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.