Red Hat Bugzilla – Bug 858013
katello-configure config option for KATELLO_JOB_WORKERS
Last modified: 2013-03-27 16:11:17 EDT
The katello-jobs service has an option in /etc/sysconfig/katello KATELLO_JOB_WORKERS to control the number of threads. This option needs to be exposed via katello-configure.
As a side note, I see the following in that file
# number of katello-job service background workers
# additional katello-job service options for delayed_jobs
#KATELLO_JOB_WORKERS=-m -p katello
which seems incorrect. Is that second one supposed to be named differently? It too needs to be settable via katello-configure
Yeah it's a typo. The latter should be: KATELLO_JOB_PARAMS. I can add that to katello-configure.
Please give it QA ack, easy to verify.
New katello-configure installer option called --job-workers which defines how many background job workers should CFSE use for promotions and other background tasks (excluding synchronization jobs). Default is 1.
FYI you can do review of all installer options reading man katello-configure.
and how to check the running threads count for background jobs? what/where to grep please?
assigning Hayk H. as QE contact.
QA: grep KATELLO_JOB_WORKERS /etc/sysconfig/katello
any other way to detect that like: there are 2 parallel jobs working, grep of the `ps` or ?
# ps axu | grep delayed_job
katello 4998 0.0 9.6 308128 173116 ? S Sep20 0:45 katello/delayed_job
katello 4999 0.0 6.3 307144 114816 ? S Sep20 0:00 delayed_job_monitor
root 19127 0.0 0.0 6380 684 pts/0 S+ 10:44 0:00 grep delayed_job
Each ONE worker has TWO processes, one is called delayed_job_monitor and one katello/delayed_job.
Verified on revision:
Now if we configure "job-workers=2" it runs 2 instances of both "delayed_job*" jobs.
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.