Disable fact caching

16 views
Skip to first unread message

Knut Ahlers

unread,
Jan 7, 2014, 9:13:15 AM1/7/14
to simian-...@googlegroups.com
Hi there,

is there any (undocumented) option to disable fact caching on client machines except of writing an kill-job for the cache file?

Cheers,
  Knut

--
Jimdo - Pages to the People.
Jimdo GmbH

Knut Ahlers
Network Administrator | Fire Protection and Security Officer

Stresemannstraße 375 | 22761 Hamburg | Germany

Geschäftsführer: F. Detzner | M. Henze | C. Springub
Amtsgericht Hamburg, HRB 101417

John Randolph

unread,
Jan 7, 2014, 10:34:27 AM1/7/14
to simian-...@googlegroups.com

we cache facts because our puppet fact dump was, at least traditionally, very slow. is this not the case for your install?

// mobile

--
You received this message because you are subscribed to the Google Groups "Simian Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simian-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Knut Ahlers

unread,
Jan 7, 2014, 10:36:19 AM1/7/14
to simian-...@googlegroups.com
Hm it requires some seconds depending on the client machine but nothing I would label as a blocker…

John Randolph

unread,
Jan 7, 2014, 10:48:25 AM1/7/14
to simian-...@googlegroups.com
Ok, it took forever here for a while so we implemented the caching.
I'll look at the code and see if there's a quick fix.
John Randolph -- Google New York

Justin McWilliams

unread,
Jan 7, 2014, 10:52:03 AM1/7/14
to simian-...@googlegroups.com
I believe a quick fix would be to set the constant to 0:

DEFAULT_FACTER_CACHE_TIME = datetime.timedelta(hours=3)


Or even minutes=10 or something low, so it's at least cached between preflight and postflight, but not across Munki executions.

John Randolph

unread,
Jan 7, 2014, 10:56:50 AM1/7/14
to simian-...@googlegroups.com
I'm pre-caffeination, but yeah that looks fine to me, setting max
cache age to 0 will cause a real facter run each time.
Reply all
Reply to author
Forward
0 new messages