Bug 1495238

Summary: MongoDB and NUMA on Physical Server
Product: [Fedora] Fedora Reporter: Marek Skalický <mskalick>
Component: mongodbAssignee: Marek Skalický <mskalick>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 28CC: admiller, databases-maint, hhorak, jpacner, mrobson, mskalick, qe-baseos-daemons, strobert, tdawson, tomm.momi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1489867 Environment:
Last Closed: 2018-02-27 11:50:54 UTC Type: Bug
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:    
Bug Blocks: 1489867    

Description Marek Skalický 2017-09-25 14:58:50 UTC
+++ This bug was initially created as a clone of Bug #1489867 +++

Description of problem:

Running the SCL mongodb image on OpenShift with an underlying physical server prints warnings related to NUMA and performance.

2017-09-07T16:25:00.984+0000 [initandlisten] ** WARNING: You are running on a NUMA machine.
2017-09-07T16:25:00.984+0000 [initandlisten] **          We suggest launching mongod like this to avoid performance problems:
2017-09-07T16:25:00.984+0000 [initandlisten] **              numactl --interleave=all mongod [other options]


Version-Release number of selected component (if applicable):
mongodb 3.2

How reproducible:

Always.


Steps to Reproduce:
1. Bring up a mongo container on a physical server with NUMA

Actual results:

Warnings and potential performance related issues.

Expected results:

A flag or option to start mongodb with numactl (assuming it's installed) as per the mongodb recommendations.

Additional info:

Comment 1 Fedora End Of Life 2018-02-20 15:25:05 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 2 Marek Skalický 2018-02-27 11:50:54 UTC
Fix for this won't be enabled by default - it isn't applicable for s390x architecture and it is kind of performance tuning ~ it won't fit everybody.

In rawhide it's now possible to use numactl to launch mongodb server when using systemd service files. It can be done by editing /etc/sysconfig/mongod or /etc/sysconfig/mongos files - NUMACTL variable is used to launch mongod/mongos server.
(upstream recommended value is provided in comment in sysconfig files)