Project

General

Profile

Bug #14723

"Current Subscription Status" widget gets slower as more subs are added

Added by Chris Duryee over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Performance
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

As the number of subscriptions increase, the "current subscription status" widget gets slower. It makes 1-2 calls to candlepin per subscription.

An alternative would be to call candlepin to get all of the pools for the org at once, and then loop over that to build the data. That would avoid the number of candlepin calls scaling as the number of subs increases.

Associated revisions

Revision cdae746a (diff)
Added by Chris Duryee over 3 years ago

Fixes #14723 - dash widget optimization (#6034)

Previously, a call was made to candlepin for each pool, to determine if
the pool was active or not. This caused the dashboard to slow down as
subs were added.

Instead, call candlepin once for each org to obtain the total active
pool count.

How I tested:

  • load a manifest with five subs into Org A
  • load a manifest with one sub into Org B
  • tail `/var/log/candlepin/candlepin.log`, note that only one call is
    being made when viewing Org A's dashboard
  • note that two calls are made when viewing "Any Organization"'s board
  • confirmed that org count was right for A, B, and Any.

History

#1 Updated by Chris Duryee over 3 years ago

  • Category set to Performance

#2 Updated by Chris Duryee over 3 years ago

  • Bugzilla link set to 1328627

#3 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

#4 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6034 added

#5 Updated by Chris Duryee over 3 years ago

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

Also available in: Atom PDF