Ask Your Question

puppet apply performance

asked 2016-02-16 03:40:40 -0600

jondoe gravatar image


We use a module(a mix of in house and external code) to deploy our applications with puppet. The main issue we have at the moment is performance related. The new process takes 3 times more time to deploy that the older one(without puppet). We are using puppet 3.7.1 but I also tested 4.3.2 and didn't notice any significant performance increase.

A few words on our setup, we use hiera/facts to resolve variables at run time, can that be an issue ?

I used the --profile option but my untrained eyes did not notice anything out of the ordinary.

Please let me know if you need more data/details.


edit retag flag offensive close merge delete


I tried to run a simple "Hello World" test and was astonished by the result. Running a recipe containing only one line(notice "Hello World") takes more than 10sec(11 to be precise). Am I the only one with this kind of performance ? btw, I am using a windows agent(masterless setup) regards

jondoe gravatar imagejondoe ( 2016-02-16 06:25:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-16 21:21:43 -0600

The simplest hello world example should be faster that that:

[root@centos-66-x64 ~]# date ; puppet apply -e 'notify { "hello world": }' ; date
Wed Feb 17 13:20:16 GMT-10 2016
Notice: Compiled catalog for centos-66-x64.local in environment production in 0.03 seconds
Notice: hello world
Notice: /Stage[main]/Main/Notify[hello world]/message: defined 'message' as 'hello world'
Notice: Finished catalog run in 0.05 seconds
Wed Feb 17 13:20:17 GMT-10 2016

It'd be hard to guess what's causing the bottleneck without seeing your system/code.

edit flag offensive delete link more


I have similar performance when I run my "hello world" example on a linux box. My windows system is another story. Can you run a test on a windows standalone agent and see how it goes ?

jondoe gravatar imagejondoe ( 2016-02-17 02:50:30 -0600 )edit

Ah, I missed that bit. Keep in mind that masterless puppet (while I think it's a great idea personally) has never been a supported configuration, and neither has running a puppet master on windows. It wouldn't suprise me, therefore, if this is normal, but I can't test it at the moment easily.

Alex Harvey gravatar imageAlex Harvey ( 2016-02-17 06:23:03 -0600 )edit

i figured as much. I am testing a new setup on a linux machine and we'll see how it goes. Thanks for your help!

jondoe gravatar imagejondoe ( 2016-02-17 06:40:22 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-02-16 03:40:40 -0600

Seen: 45 times

Last updated: Feb 16 '16