Ask Your Question

Howto trace execution time of components of agent run?

asked 2013-08-30 02:47:09 -0600

JDo gravatar image


the average execution time of a puppet agent run in one datacenter is about 15 seconds.

On some of the nodes the execution takes morgen 160 seconds :(

I can start the agent with additional parameter "--debug", so I can see more detailed the steps.

I'm searching for a possibility to show the execution time of each step . Then I want to catch the output, sort by execution time descending and start debugging ;).

Any ideas?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2013-08-31 12:16:27 -0600

bmurts gravatar image

updated 2013-08-31 12:18:53 -0600

Use the following:

sudo puppet agent --evaltrace -td

--evaltrace will give you a breakdown of the time spent for each step on the Puppet run. Eg: Gist

Best of all, its included in recent Puppet versions & doesn't additional steps to use like Puppet-profiler. Hell, looking at the code for Puppet-profiler, it uses the --evaltrace flag :)

edit flag offensive delete link more


Works great!

JDo gravatar imageJDo ( 2013-09-03 07:30:16 -0600 )edit

answered 2013-08-30 16:33:32 -0600

lavaman gravatar image

If you have reports=true in your puppet.conf on the agent, you can see the time spent on each resource type. Reports are stored on the agent in /var/lib/puppet/reports.

edit flag offensive delete link more

answered 2013-08-30 10:58:29 -0600

GregLarkin gravatar image

I have not tried it yet, but there is a Puppet profiling tool that might be what you are looking for.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools



Asked: 2013-08-30 02:47:09 -0600

Seen: 4,085 times

Last updated: Aug 31 '13