Bug 1426204

Summary: UI is slow while opening remote execution job_invocations, which has large scale hosts
Product: Red Hat Satellite Reporter: Pradeep Kumar Surisetty <psuriset>
Component: Remote ExecutionAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.7CC: aruzicka, cduryee, egolov, inecas, jcallaha, jhutar, mhulan, mmccune, pmoravec, psuriset, rjerrido, rplevka
Target Milestone: 6.4.0Keywords: Performance, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_remote_execution-1.5.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1601155 (view as bug list) Environment:
Last Closed: 2018-10-16 19:13:47 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:
Bug Depends On:    
Bug Blocks: 1601155    

Description Pradeep Kumar Surisetty 2017-02-23 12:16:51 UTC
Description of problem:

1) Run Remote execution on large scale machines ( in my case 5500)
2) Open UI of this job 

https://satserver.example.com/job_invocations/<job-id>

3) It takes longer time to open UI

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


How reproducible:


Steps to Reproduce:
1. Open UI of one of the remote execution job invocation which has large scale machine  
2.
3.

Actual results:

UI is slow

Expected results:


Additional info:

Comment 1 Chris Duryee 2017-02-23 16:20:34 UTC
Is this as 'admin' user or as another user?

Comment 2 Pradeep Kumar Surisetty 2017-02-23 16:26:23 UTC
admin user

Comment 4 Ivan Necas 2017-02-24 08:32:45 UTC
I haven't seen this behaviour on the box right now. Which makes me think the slowness happens, when something else is happening as well. I've notices however one thing yesterday: when switching tabs in the hosts list page while the job is running, every tab switch causes additional recurring polling to be sent to the server: jumping though several tabs can lead to 10s requests per-second: this might influence both the memory cunsumption in general (the more requests like this, the more passenger processes will be used) as well as response times
and therefore I suspect this could lead to slow response time times of job invocation page. I will provide a patch today to test if this might help with the problem

Comment 6 Adam Ruzicka 2017-08-29 06:18:34 UTC
Created redmine issue http://projects.theforeman.org/issues/20776 from this bug

Comment 7 Satellite Program 2018-08-02 15:48:43 UTC
Upstream bug assigned to aruzicka

Comment 8 Satellite Program 2018-08-02 15:48:46 UTC
Upstream bug assigned to aruzicka

Comment 10 Satellite Program 2018-08-06 14:13:27 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/20776 has been resolved.

Comment 11 Roman Plevka 2018-09-13 11:48:25 UTC
VERIFIED
on sat6.4.0-21

the page of a job invocation for 5000 hosts (with some of them still active) got loaded in about 3 seconds.
there are no more calls being made to insights for the preview template.

Comment 12 Bryan Kearney 2018-10-16 19:13:47 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:2927