Long running chef-client executions

0 votes

I have tried this so many times.

  • I'm using a open-source chef server managing about 150 nodes.
  • Analytics/Reporting module is not activated in the chef server due to resource constraints.
  • "chef-client" is running on all the nodes every 30 minutes

How can I find, how much time each chef-client run is taking to complete? I'm trying to find the nodes that are slowest in completing their chef-client runs

Jun 21, 2018 in Chef by shubham
• 7,320 points

1 answer to this question.

0 votes

You can try the following steps.

Chef Server doesn't store this information.

You'll need to manage it yourself, possibly using a handler as linked above in the comments. A simple option would be to make a handler which stores the duration of the last run as a node attribute, but the sky is the limit. If you want something to help debug long runs once you find them, check out my poise-profiler cookbook.

I hope the above information would be helpful to you.

answered Jun 21, 2018 by shubham
• 7,320 points

Related Questions In Chef

0 votes
1 answer

How do I run chef client?

You've kinda answered your own question there. ...READ MORE

answered Jun 14, 2018 in Chef by ajs3033
• 7,280 points
+1 vote
2 answers

Unable To Create a Chef Node "ChefNode2"

Try giving the password to access your ...READ MORE

answered Oct 16, 2018 in Chef by Kalgi
• 52,370 points
+2 votes
3 answers

Using attributes in Chef

There are 6 different types of attributes: default: A default attribute ...READ MORE

answered Oct 23, 2018 in Chef by Aditya
0 votes
1 answer

How do I Force push a recipe to the end of run_list Iin Chef?

Here is a concept which you can ...READ MORE

answered Aug 7, 2018 in Chef by Damon Salvatore
• 5,980 points
+3 votes
4 answers

Chef vs puppet

Both chef and puppet have their own ...READ MORE

answered Aug 14, 2018 in Chef by Sahil
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
+5 votes
2 answers