Ask Your Question

How can I do detailed puppetmaster profiling?

asked 2013-02-04 16:58:58 -0600

eric0 gravatar image

I know about 'evaltrace' and @rodjek's puppet-profiler, but these are client-side tools. My problem is that the puppet master compile times can sometimes -- but not always! -- be crazy slow, multiple minutes sometimes.

How can I figure out what's going on?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-02-05 08:07:13 -0600

llowder gravatar image

While I was looking through redmine for interesting features to vote for, I came across #17190.

This indicates that there is not currently a good way to get the information that you are looking for.

However, towards the end of that ticket it references another ticket that indicates the framework for this functionality may be in place, it'd just be a matter of someone patching it in.

edit flag offensive delete link more

answered 2013-05-06 00:03:44 -0600

scoopex gravatar image

updated 2013-05-06 00:04:28 -0600

Probably just adding "--debug" to the puppet master config in /etc/default/puppetmaster or /etc/sysconfig/puppetmaster might be enough to find the source of your problem. Just have a look to syslog or the puppetmaster logfile.

Alternatively you should look at the problem from the point of view of the operating system (i.e. resource usage).

Probably you can gain also some useful information using "strace" on the process id of your puppetmaster: (start strace, repdroduce your problem, stop tracing with CTRL+c)

strace -frvT -s128 -o /tmp/<filename for trace ouput> -p <puppetmaster pid>

You will get output ... (more)

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-02-04 16:58:58 -0600

Seen: 898 times

Last updated: May 06 '13