----- Original Message ----- > From: "Glenn Poston" <gposton1...@gmail.com> > To: puppet-users@googlegroups.com > Sent: Tuesday, December 3, 2013 5:30:30 PM > Subject: [Puppet Users] Re: external facts cause puppet apply to take > inordinately longer to run > > > > On Tuesday, December 3, 2013 11:08:33 AM UTC-5, jcbollinger wrote: > > > > > > > > On Wednesday, November 27, 2013 11:17:44 PM UTC-6, Glenn Poston wrote: > >> > >> My external fact script takes 5s to run. > >> > >> With external fact... > >> puppet takes 2.5m to run > >> facter takes 33s to run > >> > >> Without external fact... > >> puppet takes 27s to run > >> facter takes 0.68s > >> > >> Bottom line... there's no significant change in facter runtime when > >> parsing the external fact, but the puppet runtime quadruples. > >> > > > > > > Well, no significant change in facter's runtime give or take a factor of > > x50. What's two orders of magnitude between friends? > > > > Really, a five-second runtime for a fact is pretty extreme, but even that > > seems not to match the timings you report -- it looks more like your > > external fact takes 32 seconds to run. > > > > When I run the external fact script by itself it takes 5s to run. Facter > takes 32 seconds longer to run. > > Here's the timing data for the run of the script outside of facter: > > #Time of external fact script > [root@fisheye-10-0-2-15 manifests]# time > /etc/facter/facts.d/service_discovery.sh > environment=test > ... > service_discovery_script=ran > > real 0m5.478s > user 0m0.053s > sys 0m0.111s >
there was either a thread here or a ticket files that puppet will run external facts as much as 5 times over for a single run, might be worth adding some debug logging to a file or something you in your fact to see if this is the case? -- 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/2115610401.1064.1386092015565.JavaMail.zimbra%40devco.net. For more options, visit https://groups.google.com/groups/opt_out.