mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
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
This commit is contained in:
parent
f012159860
commit
aa1ec8af17
4 changed files with 20 additions and 3 deletions
|
@ -432,6 +432,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue