You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] --batch-wait is not documented in the salt(1) man page #60629
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
When looking at the man pages, which are managed in an automated fashion via nox (like in this example PR: #60648), the man pages are collectively found here:
When on the CLI, running man 7 salt will automatically open up a rendered salt.7 (as SALT(7)):
SALT(7) Salt SALT(7)
NAME
salt - Salt Documentation
SALT PROJECT
Salt Project License: Apache v2.0PyPi Package DownloadsPyPi Package DownloadsSalt Project Slack CommunitySalt Project Twitch
ChannelSalt Project subredditFollow SaltStack on Twitter.INDENT 0.0
[image: Salt Project Logo] [image]
• Latest Salt Documentation
• Open an issue (bug report, feature request, etc.)
Salt is the world’s fastest, most intelligent and scalable automation engine.
...
...
...
The option can be searched and found with /batch-wait, which will bring you to:
...
...
This will only run test.version on 10 of the targeted minions at a time and then restart apache on 25% of the minions match‐
ing os:RedHat at a time and work through them all until the task is complete. This makes jobs like rolling web server
restarts behind a load balancer or doing maintenance on BSD firewalls using carp much easier with salt.
The batch system maintains a window of running minions, so, if there are a total of 150 minions targeted and the batch size
is 10, then the command is sent to 10 minions, when one minion returns then the command is sent to one additional minion, so
that the job is constantly running on 10 minions.
New in version 2016.3.
The --batch-wait argument can be used to specify a number of seconds to wait after a minion returns, before sending the com‐
mand to a new minion.
SECO Range
SECO range is a cluster-based metadata store developed and maintained by Yahoo!
...
...
If wanting to search the raw man pages in this repo, can do so with grep 'batch\\-wait' doc/man/* -A5 -B5:
12:00 $ grep 'batch\\-wait' doc/man/* -A5 -B5
doc/man/salt.7-additional minion, so that the job is constantly running on 10 minions.
doc/man/salt.7-.sp
doc/man/salt.7-New in version 2016.3.
doc/man/salt.7-
doc/man/salt.7-.sp
doc/man/salt.7:The \fB\-\-batch\-wait\fP argument can be used to specify a number of seconds to
doc/man/salt.7-wait after a minion returns, before sending the command to a new minion.
doc/man/salt.7-.SS SECO Range
doc/man/salt.7-.sp
doc/man/salt.7-SECO range is a cluster\-based metadata store developed and maintained by Yahoo!
doc/man/salt.7-.sp
Are you meaning that you want to see it available via man 1 salt-call, for example? Rather than that it is missing from the man pages in general, or? To see it as an arg in section 1 instead of just the docs rendering in section 7, which is a replica of the HTML site you linked?
When typing man salt, the default man section is 1, and salt(1) is a far more manageable document when just looking up the runtime options for the basic salt command. To be honest, I've never even looked at salt(7), as I'd go onto the web site for a full-length treatise on Salt. IMHO, there's no reason to have command-line options not documented on the command's basic man page, especially when -b (--batch-size) is already there. Why wouldn't--batch-wait be there as well?
That makes sense. I have a feeling there are multiple CLI args missing from salt.1. Adding --batch-wait would be a good first step toward improving that documentation. I'll have to look into how Salt generates salt.1 via Sphinx, and where the arg needs to be added within the codebase.
EDIT: This looks like it needs to be added to doc/ref/cli/salt.rst
Activity
welcome commentedon Jul 26, 2021
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
ScriptAutomate commentedon Aug 3, 2021
Thanks for the issue!
When looking at the man pages, which are managed in an automated fashion via
nox(like in this example PR: #60648), the man pages are collectively found here:When on the CLI, running
man 7 saltwill automatically open up a renderedsalt.7(asSALT(7)):The option can be searched and found with
/batch-wait, which will bring you to:If wanting to search the
rawman pages in this repo, can do so withgrep 'batch\\-wait' doc/man/* -A5 -B5:Are you meaning that you want to see it available via
man 1 salt-call, for example? Rather than that it is missing from the man pages in general, or? To see it as an arg in section 1 instead of just the docs rendering in section 7, which is a replica of the HTML site you linked?justinclloyd commentedon Aug 3, 2021
When typing
man salt, the default man section is 1, and salt(1) is a far more manageable document when just looking up the runtime options for the basicsaltcommand. To be honest, I've never even looked at salt(7), as I'd go onto the web site for a full-length treatise on Salt. IMHO, there's no reason to have command-line options not documented on the command's basic man page, especially when-b (--batch-size)is already there. Why wouldn't--batch-waitbe there as well?ScriptAutomate commentedon Aug 5, 2021
That makes sense. I have a feeling there are multiple CLI args missing from
salt.1. Adding--batch-waitwould be a good first step toward improving that documentation. I'll have to look into how Salt generatessalt.1via Sphinx, and where the arg needs to be added within the codebase.EDIT: This looks like it needs to be added to
doc/ref/cli/salt.rstScriptAutomate commentedon Aug 5, 2021
I opened a PR for these batch args to be added to the section 1 man page (
salt.1):And I opened a follow-up issue for a more thorough audit of missing args in general.