Project

General

Profile

Feature #8210

Implemented caching for smart-proxy puppet classes

Added by Stefan Julin over 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Puppet
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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.

environment.rb environment.rb 5.36 KB Stefan Julin, 10/30/2014 03:52 AM
class_scanner.rb class_scanner.rb 6.69 KB Stefan Julin, 10/30/2014 03:52 AM
puppet_class.rb puppet_class.rb 1.12 KB Stefan Julin, 10/30/2014 03:52 AM

Related issues

Related to Smart Proxy - Bug #10941: puppet classes cache not working rightClosed2015-06-26

Associated revisions

Revision 51c455b9 (diff)
Added by Ori Rabin over 4 years ago

Fixes #8210 - Adding caching for smart-proxy puppet classes using Stefan Julin's implementation of cache

History

#1 Updated by Stefan Julin over 4 years ago

Main change is in the class_scanner.rb.

#2 Updated by Dominic Cleal over 4 years ago

  • Project changed from Foreman to Smart Proxy
  • Category changed from Smart proxies 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.

#3 Updated by Stefan Julin over 4 years ago

Hi Dominic, you are free to review the changes and check it in yourself and add it to a future release.

#4 Updated by Ohad Levy over 4 years ago

  • Related to Bug #2687: Performance issues with large ISC dataset (DHCP smart proxy) added

#5 Updated by Ohad Levy over 4 years ago

  • Related to deleted (Bug #2687: Performance issues with large ISC dataset (DHCP smart proxy))

#6 Updated by Ori Rabin over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/236 added
  • Pull request deleted ()

#7 Updated by Ori Rabin over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#8 Updated by Dominic Cleal over 4 years ago

  • Legacy Backlogs Release (now unused) set to 28

#9 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #10941: puppet classes cache not working right added

Also available in: Atom PDF