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
(cherry picked from commit c9afd24dbc
)
This commit is contained in:
parent
8544be7b24
commit
f4f5c7f0d4
|
@ -627,7 +627,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
|
||||
|
|
Loading…
Reference in New Issue