Feature #8210
closedImplemented caching for smart-proxy puppet classes
Description
As a user I want the loading of puppet classes to go faster since if you have around 20k puppet modules it takes around 20 minutes to load the puppet classes using the foreman smart-proxy. This attached fix introduce a caching mechanism for puppet classes so the puppet manifests are only loaded if the modified time on the puppet module is newer then the latest cache time. See the three attached rb files.
Files
Updated by Stefan Julin over 10 years ago
- File class_scanner.rb class_scanner.rb added
- File environment.rb environment.rb added
- File puppet_class.rb puppet_class.rb added
Main change is in the class_scanner.rb.
Updated by Dominic Cleal over 10 years ago
- Project changed from Foreman to Smart Proxy
- Category changed from Smart Proxy to Puppet
If you're looking to contribute the changes, please open a pull request through GitHub, it's how we propose and review patches. http://theforeman.org/contribute.html has more information.
Updated by Stefan Julin over 10 years ago
Hi Dominic, you are free to review the changes and check it in yourself and add it to a future release.
Updated by Ori Rabin over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 51c455b9749c917c0b0fc390a43b40a09a200554.