Red Hat Bugzilla – Bug 1472584
Pulp_max_tasks_per_child is disabled
Last modified: 2018-02-21 12:01:54 EST
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):
Steps to Reproduce:
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
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20518 has been resolved.
Checked on Satellite 6.3 Snap 17 (katello-3.4.5-3.el7sat, foreman-184.108.40.206-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.
# Configure Python's encoding for writing all logs, stdout and stderr
# 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.
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.