Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1435370 - uploading facts involves synchronous dynflow task, can cause bottleneck
uploading facts involves synchronous dynflow task, can cause bottleneck
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Fact (Show other bugs)
6.2.8
Unspecified Unspecified
high Severity high (vote)
: 6.2.10
: Unused
Assigned To: Chris Duryee
Peter Ondrejka
: Performance, PrioBumpField, Triaged
Depends On:
Blocks: 1353215
  Show dependency treegraph
 
Reported: 2017-03-23 11:53 EDT by Chris Duryee
Modified: 2017-06-20 13:23 EDT (History)
10 users (show)

See Also:
Fixed In Version: rubygem-katello-3.0.0.134-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1446710 (view as bug list)
Environment:
Last Closed: 2017-06-20 13:23:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
proposed patch to make host update async on fact upload (657 bytes, patch)
2017-03-23 11:54 EDT, Chris Duryee
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 19061 None None None 2017-03-29 03:52 EDT
Red Hat Product Errata RHBA-2017:1553 normal SHIPPED_LIVE Satellite 6.2.10 Async Bug Release 2017-06-20 17:19:07 EDT

  None (edit)
Description Chris Duryee 2017-03-23 11:53:31 EDT
Description of problem:

If a Satellite server is heavily loaded and has lots of tasks queued, you may start to see the web UI and API become unresponsive. Many of the passenger workers will be hung waiting on URLs like this:

PUT /rhsm/consumers/<UUID>

The root cause is that updating facts kicks off a synchronous dynflow task. If dynflow is backed up, client fact uploads will get slower and slower, eventually consuming all passenger workers.

Version-Release number of selected component (if applicable): 6.2.8


Steps to Reproduce:
1. create a large number of tasks that have to be run
2. on a registered client, delete /var/lib/rhsm/facts/facts.json and run subscription-manager facts --update


Actual results: slow response, possible timeouts

Expected results: the client should get a reply quickly and the host update can then happen asynchronously. Note that if the async task fails, the client would not be aware.
Comment 1 Chris Duryee 2017-03-23 11:54 EDT
Created attachment 1265824 [details]
proposed patch to make host update async on fact upload
Comment 3 Marek Hulan 2017-03-29 03:52:28 EDT
Created redmine issue http://projects.theforeman.org/issues/19061 from this bug
Comment 5 pm-sat@redhat.com 2017-03-29 14:15:18 EDT
Upstream bug assigned to cduryee@redhat.com
Comment 6 pm-sat@redhat.com 2017-04-05 14:15:36 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19061 has been resolved.
Comment 8 Peter Ondrejka 2017-05-26 07:43:23 EDT
Verified in satellite-6.2.10-1.0.el7sat.noarch, updating facts while running a remote job on 3000 hosts was done asynchronously without delay
Comment 12 errata-xmlrpc 2017-06-20 13:23:29 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1553

Note You need to log in before you can comment on or make changes to this bug.