Bug 1732657

Summary: Client registration on Satellite 6.5 is really slow compared to 6.4
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: RegistrationAssignee: Jonathon Turel <jturel>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: jturel, mmccune, mvanderw, pcreech, spetrosi, trichard
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.14.0.6-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1791505 (view as bug list) Environment:
Last Closed: 2020-04-14 13:25:08 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:
Embargoed:
Attachments:
Description Flags
6.5 production.log
none
6.4 production.log none

Description sthirugn@redhat.com 2019-07-24 04:42:39 UTC
Created attachment 1593052 [details]
6.5 production.log

Description of problem:
Client registration on Satellite 6.5 is really slow compared to 6.4 - some customer logs show registration can be about nine times slower.

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

How reproducible:
Always

Steps to Reproduce:
1. Register a client to Satellite 6.4. Note the time and corresponding logs in /var/log/foreman/production.log. A sample is attached.
2. Unregister the client from Satellite 6.4.
3. Register the same to Satellite 6.5. Note the time and corresponding logs in /var/log/foreman/production.log. A sample is attached.

Actual results:
Satellite 6.5 registration is slower than 6.4. In my test:
Satellite 6.4 registration -> 2266ms
Satellite 6.5 registration -> 2396ms 
In my test, it looks like it is a bit slower in 6.5 but note that my hardware configuration:
Satellite 6.5 - 16GB RAM, Capsule 6.5 - 12GB RAM
Satellite 6.4 -  8GB RAM, Capsule 6.4 -  3GB RAM

In one of the customer logs:
On 6.4.3 - Registration ranged from 14ms to  17 sec
On 6.5.1 - Registration ranged from 16ms to 159 sec 

Expected results:
Registration times on 6.5 should be equal to or better than in 6.4.

Additional info:
See the attached logs - For the same client,
Satellite 6.4 creates 9 audit calls.
Satellite 6.5 creates 100 audit calls.

Please be aware that Audit calls are very expensive in production due to the size of audit tables in customers.  Two open bugs exist on this:
BZ1703490 - Satellite Audits page is very slow
BZ1703496 - [RFE] Satellite audits cleanup

Comment 3 sthirugn@redhat.com 2019-07-24 04:43:07 UTC
Created attachment 1593053 [details]
6.4 production.log

Comment 4 Jonathon Turel 2020-01-06 23:59:35 UTC
Connecting redmine issue https://projects.theforeman.org/issues/28656 from this bug

Comment 5 Bryan Kearney 2020-01-09 23:01:18 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28656 has been resolved.

Comment 20 errata-xmlrpc 2020-04-14 13:25:08 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-2020:1454