commit d449a9ea07507728f5a1e1b17d5bbbb4f375ff86 Author: Alex Schultz Date: Fri Jul 24 15:38:59 2020 -0600 Lower ansible poll interval time Currently we set poll interval in ansible to 0.05 which means it'll wait 50ms. The default is 0.001 which at scale is too cpu intensive. That being said, waiting 50ms for each task across all hosts increases overall execution time. Let's lower it to 0.01 as a middle ground between the current 0.05 and the 0.001 default. Change-Id: Ie4268fcc8c1a8031eaf7c33e9c137c198017ee18 diff --git a/tripleo_common/actions/ansible.py b/tripleo_common/actions/ansible.py index 28078d9..3f8a3b4 100644 --- a/tripleo_common/actions/ansible.py +++ b/tripleo_common/actions/ansible.py @@ -115,7 +115,7 @@ def write_default_ansible_cfg(work_dir, '~/.ansible/fact_cache') # Set the pull interval to lower CPU overhead - config.set('defaults', 'internal_poll_interval', '0.05') + config.set('defaults', 'internal_poll_interval', '0.01') # Set the interpreter discovery to auto mode. config.set('defaults', 'interpreter_python', 'auto')