Project

General

Profile

Actions

Bug #20233

closed

Importing manifest gets slow with increasing number of organizations

Added by Justin Sherrill over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Subscriptions
Target version:
Fixed in Releases:
Found in Releases:

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:

Actions #1

Updated by The Foreman Bot over 6 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
Actions #2

Updated by Brad Buckingham over 6 years ago

  • Target version set to 202
Actions #3

Updated by Justin Sherrill over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release set to 267
Actions #5

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/Katello/katello/pull/6873 added
Actions #6

Updated by Justin Sherrill over 6 years ago

  • Status changed from Closed to Ready For Testing
  • translation missing: en.field_release changed from 267 to 281
Actions #7

Updated by Brad Buckingham over 6 years ago

  • Target version changed from 202 to 205
Actions #8

Updated by Justin Sherrill over 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #9

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/Katello/katello/pull/6890 added
Actions

Also available in: Atom PDF