chef-run
Concurrency Option
#158
Labels
Triage: Feature Request
Indicates an issue requesting new functionality.
Type: Enhancement
Adds new functionality.
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 wantchef-run
against to patch Java and restart Tomcat .. My recipe looks something like this: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 theknife 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:
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
:: https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_delegation.html#rolling-update-batch-sizeAha! Link: https://chef.aha.io/epics/WS-E-28
The text was updated successfully, but these errors were encountered: