Bug 1405513

Summary: Enable Process Recycling for Pulp Worker Processes
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Patrik Segedy <psegedy>
Severity: high Docs Contact:
Priority: high    
Version: UnspecifiedCC: bbuckingham, bkearney, bmbouter, chrobert, cwelton, daviddavis, dkliban, ggainey, ipanova, jcallaha, jentrena, mbacovsk, mhrivnak, mmccune, mtenheuv, oshtaier, pcreech, pmoravec, psegedy, rchan, ttereshc
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1388631 Environment:
Last Closed: 2018-02-21 17:11:28 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:
Bug Depends On: 1388631    
Bug Blocks: 1393409    

Comment 2 pulp-infra@redhat.com 2016-12-16 20:53:04 UTC
The Pulp upstream bug status is at VERIFIED. Updating the external tracker on this bug.

Comment 3 pulp-infra@redhat.com 2016-12-16 20:53:08 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2016-12-19 16:02:03 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 5 Patrik Segedy 2017-10-13 17:12:57 UTC
satellite-6.3.0-19.0.beta.el7sat.noarch
pulp-server-2.13.4-1.el7sat.noarch

Steps to verify:
1. All workers (0-7) are using --maxtasksperchild option
# grep ^PULP_MAX_TASKS_PER_CHILD /etc/default/pulp_workers
PULP_MAX_TASKS_PER_CHILD=2

# ps -axu | grep -c maxtasksperchild=[2] 
16

2. Customize PULP_MAX_TASKS_PER_CHILD option using installer option --katello-max-tasks-per-pulp-worker
# satellite-installer --katello-max-tasks-per-pulp-worker 3
Installing             Done                                               [100%] [...............]
  Success!
  * Satellite is running at https://satellite
  * To install an additional Capsule on separate machine continue by running:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
  The full log is at /var/log/foreman-installer/satellite.log

# katello-service restart

# grep ^PULP_MAX_TASKS_PER_CHILD /etc/default/pulp_workers
PULP_MAX_TASKS_PER_CHILD=3

# ps -axu | grep -c maxtasksperchild=[3] 
16

3. Reset PULP_MAX_TASKS_PER_CHILD value using installer option --reset-katello-max-tasks-per-pulp-worker
# satellite-installer --reset-katello-max-tasks-per-pulp-worker
Installing             Done                                               [100%] [.............................]
  Success!
  * Satellite is running at https://satellite
  * To install an additional Capsule on separate machine continue by running:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
  The full log is at /var/log/foreman-installer/satellite.log


# katello-service restart
# grep ^PULP_MAX_TASKS_PER_CHILD /etc/default/pulp_workers
PULP_MAX_TASKS_PER_CHILD=2
# ps -axu | grep -c maxtasksperchild=[2] 
16

4. Undefining PULP_MAX_TASKS_PER_CHILD as in bug 1388631, comment 20 is not possible, because --katello-max-tasks-per-pulp-worker requires integer value. IMO this is not an issue.


VERIFIED

Comment 6 Bryan Kearney 2018-02-21 17:11:28 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