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 1834377 - Disable mongo FTDC
Summary: Disable mongo FTDC
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.8.0
Assignee: Eric Helms
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-11 15:43 UTC by Pavel Moravec
Modified: 2024-12-20 19:04 UTC (History)
1 user (show)

Fixed In Version: foreman-installer-2.1.2.4-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 13:02:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30721 0 Normal Closed Disable mongo Full Time Diagnostic Data Capture 2020-12-15 22:29:29 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:02:29 UTC

Description Pavel Moravec 2020-05-11 15:43:53 UTC
Description of problem:
By default, mongo collects FTDC (Full Time Diagnostic Data Capture). See https://docs.mongodb.com/manual/administration/analyzing-mongodb-performance/ and grep for FTDC. Checking thread CPU usage, I noticed that ftdc thread responsible for this consumes nontrivial amount of CPU. On idle-ish Satellite, it is the most busy thread, on a very busy Satellite, it consumes 5% of overall mongod CPU time.

We have not utilised the collected data under /var/lib/mongodb/diagnostic.data/ so we should disable collecting the FTDC by default and save 5%+ CPU time of mongod.

I understand mongod will be deprecated since Sat7, letting on PrdM and Eng to decide if it is worth disabling since then.

It is sufficient to change /etc/opt/rh/rh-mongodb34/sysconfig/mongod to:

OPTIONS="-f /etc/opt/rh/rh-mongodb34/mongod.conf --setParameter diagnosticDataCollectionEnabled=false"


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


How reproducible:
100%


Steps to Reproduce:
1. Deploy a Sat, produce a load
2. /bin/ps -p $(pgrep mongod) -L -o pid,tid,psr,pcpu,comm= | sort -nk4


Actual results:
2. shows one of busiest threads is:
  PID   TID PSR %CPU 
..
15086 15106  11  1.4 ftdc


Expected results:
ftdc does not consume CPU


Additional info:

Comment 3 Eric Helms 2020-08-27 14:15:43 UTC
Created redmine issue https://projects.theforeman.org/issues/30721 from this bug

Comment 4 Bryan Kearney 2020-08-27 16:04:15 UTC
Upstream bug assigned to ehelms

Comment 5 Bryan Kearney 2020-08-27 16:04:16 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30721 has been resolved.

Comment 7 Devendra Singh 2020-09-07 13:09:18 UTC
Verified on 6.8 Snap14

Verification points:

1- # rpm -qa|grep foreman-installer
foreman-installer-2.1.2.4-1.el7sat.noarch

2- Changes of "diagnosticDataCollectionEnabled" present in /etc/opt/rh/rh-mongodb34/mongod.conf.

cat /etc/opt/rh/rh-mongodb34/mongod.conf
#mongodb.conf - generated from Puppet

#System Log
...
...
setParameter: {diagnosticDataCollectionEnabled: false}

storage.wiredTiger.engineConfig.cacheSizeGB: 3.8

3. FTDC process consume 0% CPU.

# /bin/ps -p $(pgrep mongod) -L -o pid,tid,psr,pcpu,comm= | sort -nk4
PID   TID PSR %CPU 
 1690  1692   2  0.1 Backgro.kSource
 1690  5249   0  0.1 conn77
 1690  5318   1  0.2 conn79
 1690  5296   2  0.5 conn78
 ...
 1690  1708   2  0.0 ftdc

Comment 10 errata-xmlrpc 2020-10-27 13:02:12 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 (Important: Satellite 6.8 release), 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-2020:4366


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