Directory Environments Patch

24 views
Skip to first unread message

Joshua Partlow

unread,
Apr 22, 2014, 10:56:12 PM4/22/14
to puppe...@googlegroups.com, puppet...@googlegroups.com
Hi,

We have a pull request on the Puppet master branch which provides caching support for directory environments, and which we think addresses the slowdowns people are seeing using directory environments with their production instances.


This PR relies on code slated for 3.6.0 (current master head), so you can't simply apply the patch to a 3.5.1 install.  If you are comfortable doing a test run from a source checkout of the PR, it would be great to hear if this patch speeds up a run with directory environments enabled.

There should be instructions at the bottom of the PR for how to get the branch (There is a link: 'you can also merge branches on the command line').  If you don't see that link, this is the important part:

git checkout -b hlindberg-pup-1699_cache-environments master
git pull g...@github.com:hlindberg/puppet.git pup-1699_cache-environments

Don't do this unless you know how to run Puppet from source.

There is a five second cache timeout set by default.  You can adjust this by adding an 'environment_timeout' setting in your directory environment's environment.conf file.  The possible values are '0' (no cacheing), 'unlimited' (cache forever), or a time value such as '5s', '5m', '5h', '5d' and so forth.

Thanks!


--
Josh Partlow
jpar...@puppetlabs.com
Developer, Puppet Labs

Join us at PuppetConf 2014, September 22-24 in San Francisco - http://puppetconf.com
Register by May 30th to take advantage of the Early Adopter discount —save $349!

Joshua Partlow

unread,
May 6, 2014, 4:52:06 PM5/6/14
to puppe...@googlegroups.com, puppet...@googlegroups.com
If you were unable to test from source previously, there is a 3.6.0-rc1 available now that you can use to test environment slow down issues.

You can obtain it from the pre-release repos as documented here:

Please see Eric's 3.6.0-rc1 announcement for more details.
Reply all
Reply to author
Forward
0 new messages