Merge pull request #30127 from jsutton/clarify-documenation-for-random_master

Updating documentation and example minion config for random_master/master_shuffle.
This commit is contained in:
Mike Place 2016-01-04 12:30:50 -07:00
commit 1a5d585d91
2 changed files with 18 additions and 1 deletions

View file

@ -20,8 +20,12 @@
# set to True, the order will be randomized instead. This can be helpful in distributing
# the load of many minions executing salt-call requests, for example, from a cron job.
# If only one master is listed, this setting is ignored and a warning will be logged.
# NOTE: If master_type is set to failover, use master_shuffle instead.
#random_master: False
# Use if master_type is set to failover.
#master_shuffle: False
# Minions can connect to multiple masters simultaneously (all masters
# are "hot"), or can be configured to failover if a master becomes
# unavailable. Multiple hot masters are configured by setting this

View file

@ -125,7 +125,7 @@ to the next master in the list if it finds the existing one is dead.
Default: ``False``
If :conf_minion:`master` is a list of addresses, shuffle them before trying to
If :conf_minion:`master` is a list of addresses and :conf_minion`master_type` is ``failover``, shuffle them before trying to
connect to distribute the minions over all available masters. This uses
Python's :func:`random.shuffle <python2:random.shuffle>` method.
@ -133,6 +133,19 @@ Python's :func:`random.shuffle <python2:random.shuffle>` method.
master_shuffle: True
``random_master``
------------------
Default: ``False``
If :conf_minion:`master` is a list of addresses, shuffle them before trying to
connect to distribute the minions over all available masters. This uses
Python's :func:`random.randint <python2:random.randint>` method.
.. code-block:: yaml
random_master: True
.. conf_minion:: retry_dns
``retry_dns``