Can you use inotify to invalidate the cache via the API call when selected
files in your infrastructure change?

It looks like you could do this directly from the core
https://launchpad.net/inotify-java. You'll just want to queue them up a bit
to not go crazy. 10 seconds should probably do it, but you could make that
configurable.

Trevor

On Wed, Mar 4, 2015 at 4:36 PM, Owen Rodabaugh <o...@puppetlabs.com> wrote:

> We've been discussing what the default environment_timeout setting should
> be. There is general agreement that the current 3 minutes is not great.
> It's both baffling to new users and does not bring in the full performance
> benefits.
>
> Two main perspectives on this:
>
> 1. Performance should be the primary driver and that the default of
> unlimited (cache never automatically refreshes) is preferred. This assumes
> most users have a code deployment workflow and tooling which can be
> adjusted to include the steps required to update the cache. These steps are
> either hitting the puppetserver environment cache endpoint, or restarting
> the service to cause the cache to update.
>
> 2. New user experience should be the primary driver and that a default of
> 0 (caching off) is preferred. This assumes brand new users will be baffled
> when they create or modify puppet code on the server and do not see it take
> effect during their test runs. By the time users encounter performance
> problems they will be more familiar with puppet, and this setting will be
> found when they dig into tuning.
>
> This setting can be managed per environment, and I'm guessing experienced
> users will do so. This question is focused on the out of the box defaults.
>
> Appreciate your thoughts.
>
> Owen
>
> --
> 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 puppet-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/f524207b-9dff-4e57-a46e-08bd31c640e0%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/f524207b-9dff-4e57-a46e-08bd31c640e0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaug...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

-- 
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 puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoUuPMsRruKTXVmzm3O5%3Dz41W%3Dub5Nv4mZHEbBD6VEyM8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to