Bug 1917883

Summary: Actions that load the Rails stack are slow
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: InfrastructureAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Pramuk <lpramuk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: apatel, desingh, ehelms, gtalreja, inecas, kgaikwad, zhunting
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1907801 Environment:
Last Closed: 2022-05-09 19:24:26 UTC Type: ---
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: 1907801    
Bug Blocks:    

Description Eric Helms 2021-01-19 15:13:56 UTC
The start up time of any service (e.g. foreman, dynflow) or action (foreman-rake) has gotten slower increasing the runtime for service restarts or installations. This bug aims to tackle this at the Foreman core level, looking at optimizations that can be made with the loading of the Rails stack.


+++ This bug was initially created as a clone of Bug #1907801 +++

Description of problem: satellite-service restart takes 3 to 5 minutes 


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

How reproducible:
always

Steps to Reproduce:
1. Install 6.9 satellite 
2. Restart satellite services 
3. Satellite services restarted successfully.
4. Satellite service restart takes 3 to 5 minutes


# date;foreman-maintain service restart;date
Tue Dec 15 03:40:36 EST 2020
Running Restart Services
================================================================================
Check if command is run as root user:                                 [OK]
--------------------------------------------------------------------------------
Restart applicable services: 
.....
.....                                                      

Starting the following service(s):
....
....
Tue Dec 15 03:44:31 EST 2020


Actual results:
satellite-service restart takes 3 to 5 minutes 

Expected results:
satellite-service restart should take 1 to 2 minutes

Comment 2 Eric Helms 2021-01-19 15:16:09 UTC
Created redmine issue https://projects.theforeman.org/issues/31679 from this bug