aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2021-08-16 17:03:22 +0100
committerDr. Jens Harbott <harbott@osism.tech>2023-12-05 11:49:42 +0100
commitaf6e1ca4fd3366c1ae936d225b2835e95a4191fc (patch)
tree55604da972ed4a54096f59368617b69b8690952a /doc
parent7112d5f117103845d55abd2a260a63312d43a6ec (diff)
downloadkolla-ansible-af6e1ca4fd3366c1ae936d225b2835e95a4191fc.tar.gz
kolla-ansible-af6e1ca4fd3366c1ae936d225b2835e95a4191fc.zip
Support Ansible max_fail_percentage
This allows us to continue execution until a certain proportion of hosts to fail. This can be useful at scale, where failures are common, and restarting a deployment is time-consuming. The default max failure percentage is 100, keeping the default behaviour. A global max failure percentage may be set via kolla_max_fail_percentage, and individual services may define a max failure percentage via <service>_max_fail_percentage. Note that all hosts in the inventory must be reachable for fact gathering, even those not included in a --limit. Closes-Bug: #1833737 Change-Id: I808474a75c0f0e8b539dc0421374b06cea44be4f
Diffstat (limited to 'doc')
-rw-r--r--doc/source/user/ansible-tuning.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/source/user/ansible-tuning.rst b/doc/source/user/ansible-tuning.rst
index 019dddedd..aa8db1cd2 100644
--- a/doc/source/user/ansible-tuning.rst
+++ b/doc/source/user/ansible-tuning.rst
@@ -139,3 +139,24 @@ facts via facter:
.. code-block:: yaml
kolla_ansible_setup_gather_subset: "all,!facter"
+
+Max failure percentage
+----------------------
+
+It is possible to specify a `maximum failure percentage
+<https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_error_handling.html#setting-a-maximum-failure-percentage>`__
+using ``kolla_max_fail_percentage``. By default this is undefined, which is
+equivalent to a value of 100, meaning that Ansible will continue execution
+until all hosts have failed or completed. For example:
+
+.. code-block:: yaml
+
+ kolla_max_fail_percentage: 50
+
+A max fail percentage may be set for specific services using
+``<service>_max_fail_percentage``. For example:
+
+.. code-block:: yaml
+
+ kolla_max_fail_percentage: 50
+ nova_max_fail_percentage: 25