diff options
author | Pavlo Shchelokovskyy <pshchelo@users.noreply.github.com> | 2016-10-06 22:30:20 +0300 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-10-06 14:33:09 -0500 |
commit | 3c9966d6fca902baa1fbccd02f99f3e6a156ed05 (patch) | |
tree | a8ce9078355f38444341a5e53c1ef956a17be22a /docsite | |
parent | 2a7f728fdf7cd7c6302a8f47e70759e65aa97955 (diff) | |
download | ansible-3c9966d6fca902baa1fbccd02f99f3e6a156ed05.tar.gz |
Make interprocess polling interval configurable (#16560)
As recently there was back-and-forth with this hardcoded value
(0.001 -> 0.01 -> 0.005), obviousely the optimal value for it depends on
Ansible usage scanario and is better to be configurable.
This patch adds a new config option in DEFAULT section,
`internal_poll_interval`, with default of 0.001 corresponding to the
value hardcoded in Ansible v2.1.
This config option is then used instead of hardcoded values where
needed.
Related GH issue: 14219
(cherry picked from commit aa1ec8af17dc90f20079252010d6a4f93fde4b35)
Diffstat (limited to 'docsite')
-rw-r--r-- | docsite/rst/intro_configuration.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docsite/rst/intro_configuration.rst b/docsite/rst/intro_configuration.rst index 68a92abed5..e719337f2a 100644 --- a/docsite/rst/intro_configuration.rst +++ b/docsite/rst/intro_configuration.rst @@ -443,6 +443,20 @@ implications and wish to disable it, you may do so here by setting the value to host_key_checking=True +.. _internal_poll_interval: + +internal_poll_interval +====================== + +.. versionadded:: 2.2 + +This sets the interval (in seconds) of Ansible internal processes polling each other. +Lower values improve performance with large playbooks at the expense of extra CPU load. +Higher values are more suitable for Ansible usage in automation scenarios, when UI responsiveness is not required but CPU usage might be a concern. +Default corresponds to the value hardcoded in Ansible ≤ 2.1:: + + internal_poll_interval=0.001 + .. _inventory_file: inventory |