From 3c9966d6fca902baa1fbccd02f99f3e6a156ed05 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Thu, 6 Oct 2016 22:30:20 +0300 Subject: 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) --- docsite/rst/intro_configuration.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docsite') 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 -- cgit v1.2.1