Project

Profile

Help

Issue #3045

closed

Running orphan cleanup tasks simultaniously leads to high mongod cpu usage

Added by ttereshc about 7 years ago. Updated almost 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.8.7
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

This is often seen on the Katello setups with smart proxies.

Even though it can be improved on Katello side - not to run orphan clean up after each sync on smart proxies, there is no need for two or more orphan tasks to be run in parallel. So suggestion here is to prevent that.

Making this change also would avoid the race condition reported in #3043

As per mhrivnak comment:

I don't see any harm in us making it a resource-reserving task. We aren't gaining much by running multiple in parallel. It should be a simple 1-line change to call "apply_async_with_reservation(...)" instead of "apply_async()"

Check related BZ for more details.


Related issues

Related to Pulp - Issue #3043: Race condition during orphan cleanupCLOSED - WONTFIXActions

Also available in: Atom PDF