Project

General

Profile

Bug #4809

katello-jobs takes a really really long time to restart

Added by Mike McCune over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

From MDP2:

  1. time service katello-jobs restart
    Starting katello-jobs: [ OK ]

real 0m50.070s

From katello-nightly:

  1. time service katello-jobs restart
    Starting katello-jobs: [ OK ]

real 2m18.895s


Related issues

Related to Katello - Refactor #6297: Remove katello-jobsClosed2014-06-19

History

#1 Updated by Mike McCune over 6 years ago

  • Triaged changed from No to Yes

#2 Updated by Mike McCune over 6 years ago

Also effects the 1st page render after a restart.

See strace logfile here:

http://mmccune.fedorapeople.org/scratch/strace-rails-1stpage.log.gz

#3 Updated by Ivan Necas over 6 years ago

Getting rid of delayed jobs should get us back on the original re-start time. It takes twice as long now, as there are two workers started: dynflow and delayed jobs

#4 Updated by Mike McCune over 6 years ago

  • Priority changed from Normal to High

#5 Updated by Ivan Necas over 6 years ago

To give some backgound on the issue: there are two things:

1. delayed-jobs starting

2. dynflow execution starting

Both of them need to load the whole Rails environment to be able to do some work. We can move
away from dealyed-jobs quite soon, so I would not spend more time tuning the up

With dynflow executor, it would not help much not waiting for the environment to fully start,
as the Katello orchestration needs it to be running. So we would have faster start, but the
service would not be ready anyway (this is a trick that many init scripts do, but I consider
that cheating, causing more harm than benefit)

We could investigate why loading Rails environment takes so long and eliminate that as well.
I would help with unit testing as well.

#6 Updated by Eric Helms about 6 years ago

#7 Updated by Eric Helms about 6 years ago

  • Target version set to 55
  • Legacy Backlogs Release (now unused) set to 13

#8 Updated by Eric Helms about 6 years ago

  • Status changed from New to Closed

Also available in: Atom PDF