Adam Winberg
2012-Dec-05 16:25 UTC
[Puppet Users] Slow compilation after moving to modules
We are working on moving our puppet code from old-school method of importing standalone classes in site.pp to modules. I was hoping i could move one class at a time and at the same time review syntax, coding, subclasses and so forth for each class. So, i defined a modulepath in puppet.conf and put a couple of classes there while still keeping the old structure (minus the classes i put in modules of course). That gets us to the problem - as soon as i start to use modules the time to compile the catalog is increased drastically, from 2-5s to 10-15s. I only see this when there are a lot of simultaneous puppet runs on the puppetmaster, when running without other clients ''interferring'' the compilation time is still increased, but only reaches about 5-6s. Is this a behaviour from running parallell modules and standalone classes or is modules just a lot more work for the puppet master? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Adam Winberg
2012-Dec-06 06:41 UTC
Re: [Puppet Users] Slow compilation after moving to modules
i was a bit rushed when writing this so i forgot a couple of things: OS: RHEL6 puppetmaster version: puppet-server-2.7.9-1.el6.rf.noarch puppet client version: puppet-2.6.17-2.el6.noarch (Upgrading client version is on the todo-list) Happy for any help/suggestions! //Adam On 5 December 2012 17:25, Adam Winberg <adam.winberg@gmail.com> wrote:> We are working on moving our puppet code from old-school method of > importing standalone classes in site.pp to modules. I was hoping i could > move one class at a time and at the same time review syntax, coding, > subclasses and so forth for each class. So, i defined a modulepath in > puppet.conf and put a couple of classes there while still keeping the old > structure (minus the classes i put in modules of course). > > That gets us to the problem - as soon as i start to use modules the time > to compile the catalog is increased drastically, from 2-5s to 10-15s. I > only see this when there are a lot of simultaneous puppet runs on the > puppetmaster, when running without other clients ''interferring'' the > compilation time is still increased, but only reaches about 5-6s. > > Is this a behaviour from running parallell modules and standalone classes > or is modules just a lot more work for the puppet master? >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Reasonably Related Threads
- inventory of managed resources
- puppet master under passenger locks up completely
- file and user permissions on the puppet master, best practice
- When do modules get auto-imported
- Warning: Local environment: "42A" doesn't match server specified node environment "production", switching agent to "production"