hector1987@gmail.com
2014-Nov-12 16:41 UTC
[Puppet Users] Puppetmaster 3.7.3 startup times when many environments exist
Hello, My problem: it takes 2 minutes and 14 seconds for the puppetmaster to start (and it uses 100% cpu). It also seems to take way longer if spawned by Apache/passenger. We run a larger-than-average Puppet setup, with 1892 different puppet environments, each of them different from each other. Traditionally we have not used "environments", but rather played with the "modulepath" variable to simulate them (since before they were implemented as such this was the way to do it). Now I am trying to enable "environments" the proper way, by setting environmentpath etc. Strace shows that the puppetmaster will try to read every single environment directory and environment.conf file during startup and it is obviously setting up some underlying configuration as it takes a considerable large amount of time for every environment. I don't know how far in 3.x this goes since we never cared to test them. My questions: * Any idea how to workaround it (other than keeping our modulepath-based configuration, which works well) * Assuming this is a just a "warm up" time, will a low "environment_timeout" setting cause the retriggering of such slow operations as the ones happening during the puppetmaster start on a regular basis? Even as a one-time warm-up time this is not acceptable for us so I guess we will keep using our current way, even with the deprecation warnings. Note I think the new "environments"-way makes totally sense and the model fits better for large diverse setups like ours. It just does not work well. If any developer is watching this list, it would be good to now if this can be considered a bug (I can open a ticket), or is part of the environment's "feature". Regards! Hector -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b5462b0f-74e6-4cbc-b8bf-53121af6910b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.