If you have any exported resource collections or query any external system for data it won't work (puppetdbquery, DNS, LDAP for example).
But for the subset you can make those guarantees I suppose it will give a speed boost. On Mon, Jun 29, 2015, 17:43 Raphaël Pinson <[email protected]> wrote: > Hello, > > > I've activated caching on our Puppetservers, using the admin API to > invalidate the cache upon deploying new environments. However, this only > caches manifests, and catalogs still need to be compiled for every request. > > I'm thinking (at least in our case) it wouldn't be totally crazy to cache > catalogs on the master so long as: > > * manifests are not changed (this is taken care of by the r10k hook + > admin API) > * data do not change (same, since we deploy hiera data with r10k) > * facts do not change. > > > Obviously, *some* facts always change (uptime, memoryfree, swapfree, > etc.), but most of them don't. So the idea would be to add a parameter in > puppet.conf with the name of these facts that should be used as a basis for > invalidating the catalog, and use the other facts to decide when a catalog > should be recompiled. > > Is there already some kind of code doing that, or any opinion/feedback on > this idea? > > > Cheers, > > Raphaël > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-dev/a1b2f2f0-3392-4c01-a195-c60bb81b60b2%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-dev/a1b2f2f0-3392-4c01-a195-c60bb81b60b2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CAAAzDLdZ9Myibb-e6zzvG-fV8ZTLxMbLK6z_N92ow7rXtTWP5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
