From c9afd24dbcf8f2aeb6991413a72cad483dc5a08a Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Fri, 24 Jul 2020 15:36:31 -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: If5545e4ce4ee170f38634bc2366775e36657d6c0 --- tripleoclient/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleoclient/utils.py b/tripleoclient/utils.py index bec4177f8..1375a30e2 100644 --- a/tripleoclient/utils.py +++ b/tripleoclient/utils.py @@ -615,7 +615,7 @@ def run_ansible_playbook(playbook, inventory, workdir, playbook_dir=None, if 'defaults' not in config.sections(): config.add_section('defaults') - config.set('defaults', 'internal_poll_interval', '0.05') + config.set('defaults', 'internal_poll_interval', '0.01') with open(ansible_cfg, 'w') as f: config.write(f) env['ANSIBLE_CONFIG'] = ansible_cfg