Bug 2231501

Summary: Task queue can be overloaded with import tasks to the exclusion of other work
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.12.4CC: dalley, dkliban, ggainey, gtalreja, rchan, rlavi, vcojot
Target Milestone: 6.13.4Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pulpcore-3.21.13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2227093 Environment:
Last Closed: 2023-09-12 15:20:56 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:

Comment 1 Gaurav Talreja 2023-09-04 11:35:48 UTC
VERIFIED.

Tested on Satellite 6.13.4 Snap 2.0
Version: python39-pulpcore-3.21.15-1.el8pc.noarch

Steps and observations:
1. Sync'ed repos as per 2*available pulpcore-workers, created and published the CV, and export a content view version
2. Create a new org, upload manifest and run the content import with IMPORT_WORKERS_PERCENT setting.
3. When IMPORT_WORKERS_PERCENT isn't set in /etc/pulp/settings.py so it is default IMPORT_WORKERS_PERCENT=100, then no syncs were working while import was going on, and after import task completed repo sync worked nearly after an hour for small repos sync.
4. When IMPORT_WORKERS_PERCENT=50 is set in /etc/pulp/settings.py, then while import task is going on, which will utilize half of the available workers and syncs also works along with import without waiting for import tasks to finish.

Also we could check for the workers in use for content-import task with commands like "pulp task list --state running" and "pulp worker list --online"

And we've BZ 2233490 created to make this setting configurable with installer, as per discussion happened in its 6.12.z clone BZ.

Comment 6 errata-xmlrpc 2023-09-12 15:20:56 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 (Satellite 6.13.4 Async Update), 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/RHBA-2023:5106