Actions
Bug #14680
openposting facts takes several seconds per host
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Description
- At the start of each ansible run, facts are gathered per host and sent to foreman via the http API.
- The send_facts function in foreman_callback.py executes a sync http post causing a delay of several seconds per host. (3 to 10 in our tests) With a lot of hosts in the inventory, the facts gathering phase takes lasts way too long.
Changing the send_facts function to use a async http post would solve the issue.
Files
Updated by Bart Janssens about 8 years ago
Tested with latest version of the ansible plugin (Release 0.3)
Updated by Andrea Dell'Amico almost 8 years ago
- File foreman_callback.py.diff foreman_callback.py.diff added
Hello, here is a patch that uses threads to send the facts asynchronously. Thanks to sandro.labruzzo@isti.cnr.it.
Actions