Chef Ideas

We believe that the best way to build software is to do it in close collaboration with the people who use it. We invite you to submit your ideas using the form below. Please be sure to include the problem for which you are solving and the benefits of implementing the idea.

We do our best to implement as many Ideas as we can. Our Product team will evaluate all submitted ideas in a timely manner and will disposition each into one of the following categories: will integrate into the product roadmap, further research is needed, unlikely to implement.

Thanks for collaborating with us!

`chef-run` Concurrency Option

As a `chef-run` operator,

I would like to be able to control the concurrency of my `chef-run`s,

So that I can better orchestrate my adhoc tasks ..

For example, let’s assume I have defined a range of hosts (`tomcat-prod[1:10]`) I want `chef-run` against to patch Java and restart Tomcat .. My recipe looks something like this:


package 'java-1.8.0-openjdk-devel' do

action :upgrade

notifies :restart, 'service[tomcat]', :delayed


service 'tomcat' do

action :nothing



The problem I am having is that they will all upgrade and restart at the same time, which means downtime .. I would like to have the opportunity to use a `--concurrency` option that would limit how many hosts are being worked on at the same time << very similar to the `knife ssh` option .. If possible, I would like to also be able to define a percentage value that would calculate how many hosts exists, and then based on my percentage value, work on the allowed amount ..

Example commands are:


# ASSUME 10 hosts total

# only work on 5 nodes at a time

chef-run tomcat-prod[1:10] upgrade_and_restart.rb --concurrency 5 ..

# only work on 50% of nodes at a time (i.e. 5 in in this example)

chef-run tomcat-prod[1:10] upgrade_and_restart.rb --concurrency '50%' ..


Before you say: “Greg, you already know there are 10 hosts, so just define 5 and be done with it” .. This is true, BUT, I have another idea submitted were we allow hosts pattern matching using regex, and if that comes true, then the `chef-run` operator may not know how many hosts exist and so we should allow them to deal in percentages vs hard numbers ..

Thanks and let me know if you have questions .. Here is a link to how Ansible is doing it using `serial` ::

  • Gregory Spranger
  • Sep 16 2019
  • Currently Declined
  • Attach files
  • Jessica Yan commented
    4 Oct, 2019 08:04pm

    This is in our backlog but we have UX design dependencies before we can really move forward w/ this work.