Project

General

Profile

Actions

Bug #14680

open

posting facts takes several seconds per host

Added by Bart Janssens about 8 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

foreman_callback.py.diff foreman_callback.py.diff 1.2 KB async send_facts Andrea Dell'Amico, 07/08/2016 10:14 AM
Actions #1

Updated by Bart Janssens about 8 years ago

Tested with latest version of the ansible plugin (Release 0.3)

Actions #2

Updated by Andrea Dell'Amico almost 8 years ago

Hello, here is a patch that uses threads to send the facts asynchronously. Thanks to .

Actions #3

Updated by Ondřej Ezr about 3 years ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF