Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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