Bug 1472584 - Pulp_max_tasks_per_child is disabled
Summary: Pulp_max_tasks_per_child is disabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Chris Roberts
QA Contact: Radovan Drazny
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-19 04:15 UTC by sbadhwar
Modified: 2019-04-01 20:27 UTC (History)
11 users (show)

Fixed In Version: katello-installer-3.4.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:01:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20518 0 Normal Closed Pulp_max_tasks_per_child is disabled 2020-09-18 14:05:13 UTC

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


Note You need to log in before you can comment on or make changes to this bug.