Bug 1330749

Summary: sync status page very slow
Product: Red Hat Satellite Reporter: Chris Duryee <cduryee>
Component: PerformanceAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: mmello
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-27 16:27:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chris Duryee 2016-04-26 21:02:33 UTC
Description of problem:

The 'sync status' page gets slower as the number of products and repos grows. It appears that there are two areas that cause it to be slow.

First, https://github.com/Katello/katello/blob/master/app/controllers/katello/sync_management_controller.rb#L29 can be very slow. With 10 custom products and 7 enabled RH products, it takes about 7 seconds for that line to complete.

Secondly, a call to candlepin to fetch subscriptions is made for each RH product enabled. Each of these takes 300-400msec.

To repro, import a manifest and enable a few repos on some RH products. Sync all products to get some sync data, then view page.

NOTE: this is a performance optimization bug for the sync status page. Ideally, there will be no change in functionality.


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

Comment 1 Marcelo Moreira de Mello 2016-05-27 16:27:11 UTC
  Closing as duplicated https://bugzilla.redhat.com/show_bug.cgi?id=1163740

*** This bug has been marked as a duplicate of bug 1163740 ***