Bug 1422307 - subscription page unusable with many hosts registered
Summary: subscription page unusable with many hosts registered
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.2.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: John Mitsch
QA Contact: Roman Plevka
URL:
Whiteboard:
: 1409815 (view as bug list)
Depends On:
Blocks: 1479962 1545876 1551674
TreeView+ depends on / blocked
 
Reported: 2017-02-15 00:57 UTC by Chris Duryee
Modified: 2021-09-09 12:08 UTC (History)
16 users (show)

Fixed In Version: rubygem-katello-3.0.0.168-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1551674 (view as bug list)
Environment:
Last Closed: 2018-02-21 16:54:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 19394 0 High Closed subscription page unusable with many hosts registered 2020-04-04 19:35:27 UTC

Description Chris Duryee 2017-02-15 00:57:46 UTC
Description of problem:

If you have a satellite with a large number of hosts (perhaps 40K or more), the subscriptions page becomes unusable. It is reasonably fast to view the list of subs, but if you click one of the subscriptions, it can take hours for the page to return. Additionally, a large amount of memory is used by the passenger worker after this happens.

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


Steps to Reproduce:
1. register a large number of hosts, and have them all use the same pool
2. click subscriptions page, then click any subscription (doesn't have to be the sub with all the hosts)

Actual results: time for page to return is slower than pizza delivery, passenger worker uses multiple GB of memory when complete.


Expected results: page loads in under 5 seconds


Additional info: the refactor to the hosts method in https://github.com/Katello/katello/commit/440b51d54a020885d2680ce9edeef01b477a28b4#diff-457d74b9b2d0b6a2f062d4ea6b414d4b seems to help, in that it will only be slow when clicking the pool with all the hosts attached instead of any pool. However, if you click the pool with the hosts, it is very slow.

Comment 3 Brad Buckingham 2017-04-26 14:22:23 UTC
Created redmine issue http://projects.theforeman.org/issues/19394 from this bug

Comment 4 Satellite Program 2017-06-13 14:10:25 UTC
Upstream bug assigned to jomitsch

Comment 5 John Mitsch 2017-06-13 21:53:13 UTC
Opened up an MR to add a setting that can set a number of hosts returned when viewing a subscription. This defaults to all hosts being returned, but can be changed by the user to any number. This can be the workaround for 6.2.z as we work on the proper fix upstream that will be included in 6.3

Comment 6 Chris Duryee 2017-06-14 01:03:51 UTC
what is the impact of setting the number to something low? for example, what would happen if I set it to 10?

Comment 7 John Mitsch 2017-06-14 14:34:10 UTC
Had a discussion  with Chris off-thread about the fix.

I updated the MR to use a setting that disables host data being returned when an individual subscription is called. When this is disabled, the subscriptions return much faster, but the associations > content hosts tab will not show anything. I'm updating the MR to reflect this in the UI message.

This is just a workaround for blocked users in 6.2 until we fix this properly upstream and include the proper fix in 6.3

Comment 8 John Mitsch 2017-07-26 12:33:48 UTC
*** Bug 1409815 has been marked as a duplicate of this bug. ***

Comment 11 Satellite Program 2017-09-13 20:10:01 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19394 has been resolved.

Comment 12 Roman Plevka 2017-10-23 11:24:58 UTC
Hi, would it be at least possible to keep track of the number of the consumer hosts? Or does user has to iterate through all of them to get the numbers?

Comment 13 John Mitsch 2017-11-06 12:35:13 UTC
Hey Roman, 

I responded to your question on the PR here https://github.com/Katello/katello/pull/6885#issuecomment-339009910

Let me know if you need more information.

-John

Comment 14 Roman Plevka 2017-11-06 19:58:45 UTC
(In reply to John Mitsch from comment #13)
> Hey Roman, 
> 
> I responded to your question on the PR here
> https://github.com/Katello/katello/pull/6885#issuecomment-339009910
> 
> Let me know if you need more information.
> 
> -John

Hi John. Thanks for the reply. I think that perfectly answers my question.

Comment 15 Roman Plevka 2018-01-02 15:37:17 UTC
VERIFIED
on sat6.3.0-30

the page is now loaded instantly and the changes do not seem to negatively influence any other feature.

Comment 17 Satellite Program 2018-02-21 16:54:17 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336


Note You need to log in before you can comment on or make changes to this bug.