Bug #20233
closedImporting manifest gets slow with increasing number of organizations
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1339696
Description of problem:
It looks like candlepin polls every org and every activation key every time a manifest is being uploaded.
this is the section where my manifest has been uploaded to Default Organization, which was the only org on the system:
http://pastebin.com/RTZnhL85
here I created a new organization my_org_1 and did the same thing:
http://pastebin.com/nPZwdryD
(notice, there is polling to Default Organization done too).
I've also extracted the CI machine's candlepin log around the manifest import phase:
http://pastebin.com/1VhrEx1m
This took about 11 minutes
I realize 1000+ is a bit extreme and is not likely to be used in a production, however this causes many timeout issues to our automation. Also it is good to demonstrate the increasing time needed to process the manifest.
Also it looks like even a few organizations with many Activation Keys might cause the issue.
Version-Release number of selected component (if applicable):
6.2.0 beta (GA12.1)
Steps to Reproduce:
1. get multiple organizations, optionally with many activation keys
2. try to upload the manifest
3. experiment by adding more organizations and activation keys
Expected results:
The time taken to import a manifest should be constant and shouldn't exceed 1 minute (subjective)
Additional info:
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Justin Sherrill
- Pull request https://github.com/Katello/katello/pull/6853 added
Updated by Justin Sherrill over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|a7c056f667c25c7f01cc67b50be05236671fafe1.
Updated by Justin Sherrill over 7 years ago
- Translation missing: en.field_release set to 267
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/Katello/katello/pull/6873 added
Updated by Justin Sherrill over 7 years ago
- Status changed from Closed to Ready For Testing
- Translation missing: en.field_release changed from 267 to 281
Updated by Brad Buckingham over 7 years ago
- Target version changed from 202 to 205
Updated by Justin Sherrill over 7 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|65f557c1e25b3d9e59d84643fd50389b3a468728.
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/Katello/katello/pull/6890 added