Bug #19061
closeduploading facts involves synchronous dynflow task, can cause bottleneck
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1435370
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.
Updated by Marek Hulán almost 8 years ago
- Subject changed from uploading facts involves synchronous dynflow task, can cause bottleneck to uploading facts involves synchronous dynflow task, can cause bottleneck
- Category set to Subscriptions
I was not sure about the right category. Unfortunately, core does not yet support background processing for facts importing yet but since the subscription manager facts are wrapped in foreman task, it could be probably triggered asynchronously as suggested in the patch available in the BZ.
Updated by Justin Sherrill almost 8 years ago
- Assignee set to Chris Duryee
- Translation missing: en.field_release set to 226
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6709 added
Updated by Chris Duryee almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|d80a3f67691b1ca4aab7c1d5312ca586fd6897f0.