From d449a9ea07507728f5a1e1b17d5bbbb4f375ff86 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Fri, 24 Jul 2020 15:38:59 -0600 Subject: [PATCH] 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 --- tripleo_common/actions/ansible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_common/actions/ansible.py b/tripleo_common/actions/ansible.py index 28078d906..3f8a3b4d5 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')