Document object prepare and object run parallelization.

This commit is contained in:
Darko Poljak 2017-06-13 22:54:40 +02:00
parent e774fc2b2a
commit e32f2110ab
4 changed files with 12 additions and 6 deletions

View file

@ -127,8 +127,9 @@ def get_parsers():
parser['config_main'].add_argument(
'-j', '--jobs', nargs='?',
type=check_positive_int,
help=('Specify the maximum number of parallel jobs, currently '
'only global explorers are supported'),
help=('Specify the maximum number of parallel jobs. Global'
'explorers, object prepare and object run are supported'
'(currently in beta'),
action='store', dest='jobs',
const=multiprocessing.cpu_count())
parser['config_main'].add_argument(

View file

@ -1,6 +1,9 @@
Changelog
---------
next:
* Core: Support -j parallelization for object prepare and object run (Darko Poljak)
4.4.3: 2017-06-13
* Type __golang_from_vendor: Install golang from https://golang.org/dl/ (Kamila Součková)
* Type __go_get: Install go packages using go get (Kamila Součková)

View file

@ -11,8 +11,9 @@ with :strong:`-p/--parallel` option.
The other way is to operate in parallel within one host where you specify
the number of jobs. This is enabled with :strong:`-j/--jobs` option where you
can specify the number of parallel jobs. By default,
:strong:`multiprocessing.cpu_count()` is used. For this mode only global
explorers are currently supported and this option is still in :strong:`beta`.
:strong:`multiprocessing.cpu_count()` is used. For this mode global explorers,
object preparation and object run are supported and this option is still in
:strong:`beta`.
You can, of course, use those two options together. This means that each host
will be processed by its own process. Within each process cdist will operate

View file

@ -99,8 +99,9 @@ Configure/install one or more hosts.
.. option:: -j [JOBS], --jobs [JOBS]
Specify the maximum number of parallel jobs; currently only
global explorers are supported (currently in beta)
Specify the maximum number of parallel jobs. Global
explorers, object prepare and object run are supported
(currently in beta).
.. option:: -n, --dry-run