Bug 1472584

Summary: Pulp_max_tasks_per_child is disabled
Product: Red Hat Satellite Reporter: sbadhwar
Component: InstallationAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Radovan Drazny <rdrazny>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, cduryee, chrobert, ehelms, jcallaha, jhutar, mmccune, psuriset, rdrazny, sbadhwar, ttereshc
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/20518
Whiteboard:
Fixed In Version: katello-installer-3.4.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:01:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sbadhwar 2017-07-19 04:15:13 UTC
Description of problem:
According to the pulp documentation, the pulp workers do not release all of the memory once all of the tasks are completed. The workaround for the issue was suggested to be, set the PULP_MAX_TASKS_PER_WORKER to allow recycling the workers once they process a certain number of tasks.

This setting PULP_MAX_TASKS_PER_WORKER was enabled and set to a value of 2 in the 6.2 but seems to be disabled with Satellite 6.3

Can it be possibly enabled again in the Satellite 6.3 Release  


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Tanya Tereshchenko 2017-08-01 15:07:56 UTC
Default for PULP_MAX_TASKS_PER_WORKER is not configured on the Pulp component side I think.

Feel free to change component if I guessed it wrong

Comment 5 Satellite Program 2017-08-10 14:05:26 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20518 has been resolved.

Comment 6 Radovan Drazny 2017-10-09 09:43:53 UTC
Checked on Satellite 6.3 Snap 17 (katello-3.4.5-3.el7sat, foreman-1.15.4.1-1.el7sat). PULP_MAX_TASKS_PER_CHILD is set to 2 in the default config.

$ cat /etc/default/pulp_workers 
# Configuration file for Pulp's Celery workers

# Define the number of worker nodes you wish to have here. This defaults to the number of processors
# that are detected on the system if left commented here.
PULP_CONCURRENCY=8

# Configure Python's encoding for writing all logs, stdout and stderr
PYTHONIOENCODING="UTF-8"

# To avoid memory leaks, Pulp can terminate and replace a worker after processing X tasks. If
# left commented, process recycling is disabled. PULP_MAX_TASKS_PER_CHILD must be > 0.

PULP_MAX_TASKS_PER_CHILD=2

Comment 7 Bryan Kearney 2018-02-21 17:01:54 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, 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/RHSA-2018:0336