Bug 1285522

Summary: [RFE] - Tune Controller for best Mongodb Performance
Product: Red Hat OpenStack Reporter: Alex Krzos <akrzos>
Component: rhosp-directorAssignee: Hugh Brock <hbrock>
Status: CLOSED NOTABUG QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: fbaudin, jtaleric, mburns, morazi, rhel-osp-director-maint
Target Milestone: ---Keywords: FutureFeature
Target Release: 10.0 (Newton)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1285539 (view as bug list) Environment:
Last Closed: 2016-09-16 13:32:18 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: 1285539    

Description Alex Krzos 2015-11-25 20:17:56 UTC
Description of problem:
Mongodb recommends two preferred OS tunings for it to run optimally.  We probably want to implement these MonogoDB tunings on the controller machines that host Mongo as long as ceilometer is deployed and using Mongodb.

The tunings are printed in the Mongo console:

[root@overcloud-controller-0 lib]# mongo --host 172.21.33.20
MongoDB shell version: 2.6.9
connecting to: 172.21.33.20:27017/test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
	http://docs.mongodb.org/
Questions? Try the support group
	http://groups.google.com/group/mongodb-user
Server has startup warnings:
2015-10-15T17:52:08.004-0400 [initandlisten]
2015-10-15T17:52:08.004-0400 [initandlisten] ** WARNING: You are running on a NUMA machine.
2015-10-15T17:52:08.004-0400 [initandlisten] **          We suggest launching mongod like this to avoid performance problems:
2015-10-15T17:52:08.004-0400 [initandlisten] **              numactl --interleave=all mongod [other options]
2015-10-15T17:52:08.004-0400 [initandlisten]
2015-10-15T17:52:08.004-0400 [initandlisten]
2015-10-15T17:52:08.004-0400 [initandlisten] ** WARNING: Readahead for /var/lib/mongodb is set to 4096KB
2015-10-15T17:52:08.004-0400 [initandlisten] **          We suggest setting it to 256KB (512 sectors) or less
2015-10-15T17:52:08.004-0400 [initandlisten] **          http://dochub.mongodb.org/core/readahead
tripleo:PRIMARY>

Comment 3 Mike Burns 2016-04-07 20:57:01 UTC
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.