On 1/11/17 9:58 AM, Zachary Vida wrote:
Hello, I was wonder if there are any significant impovements in later
version of puppet >= 2.6 to catolog compilation and/or application
runtimes.

In an environment I manage we populate many local files
(/etc/passwd,/etc/group,/etc/hosts) via ENC. This results in a steady
state catalog compilation/apply run times of several minutes and during
an inital puppet apply clocking in at 90 minutes.

Depends on a number of factors. Without knowing more about the system this is general advice and numbers.

- Upgrade to Puppet 3.8.x. Should be a fairly simple update in most environments. Expect file serving and catalog compile to take 50% of the time with 3.8 masters as compared to 2.7 masters. I don't have numbers on 2.6 masters. You must have 2.7 agents to talk to 3.x masters.

- Upgrade the Puppet master to a distro running Ruby 1.9.3 or better. Expect catalog compiles to drop to 50% of the 1.8.7 run time with Ruby 1.9.3 or 25% with 2.1. This can be a complex upgrade if you have templates that use str.each or wrote your own functions.

- Replace source => 'puppet:///modules/sudo/sudoers', with content => file('sudo/sudoers'), in as many places as possible. Note do not do this for binary files, there can be problems with utf8 data. The catalog will be larger over the wire, but a faster apply since you can eliminate additional https connections. However I expect you're doing a fair amount of source => 'puppet:///modules/thing/some_dir_full_of_files/' and file() can't help you there.

- Use Passenger, tune it appropriately. https://ask.puppet.com/question/13433/how-should-i-tune-passenger-to-run-puppet/

For the record, I can admit to having "tens of thousands of hosts" and over half of them have 4k+ file resources.

Ramin

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3b9e17a3-7bea-8752-4811-9d2d25f5c7ce%40badapple.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to