Skip to content

isabella232/tuned-percona-mongodb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

tuned-percona-mongodb

A performance-focused tuned profile for MongoDB on CentOS/Redhat Linux.

About

The profile sets various recommended settings for a production mongodb deployment (sysctls, io scheduler, THP, CPU states, etc). Tested on CentOS/Redhat 7 although it may work on Debian's tuned in 8+.

Many of the tunings are justified/explained in this blog post: https://www.percona.com/blog/2016/08/12/tuning-linux-for-mongodb/

Experimental

While this profile has undergone testing, it comes with no gurantees and it is possible these tunings will not work well for your situation.

Why?

Tuned's daemon runs by default on CentOS/Redhat hosts since version 7, managing the tunings of operating system via profiles. Tuning the system manually outside of using tuned profiles will often cause your settings to be overriden by tuned itself or future upgrades. Tuned profiles abstract the details of where/how to apply tunings in a consolidated, easy-to-troubleshoot location.

Install

Note: The profile assumes /dev/sda is an Linux "os" disk and /dev/sdX are for database data. Adjust "devices=" in the disk section if this is not the case.

$ git clone https://github.com/Percona-Lab/tuned-percona-mongodb
$ cd tuned-percona-mongodb
$ sudo make enable

Uninstall

Note: uninstall step enables the 'latency-performance' profile, change after if needed

$ cd /your/git/path/tuned-percona-mongodb
$ sudo make uninstall

Contact

About

A performance-focused tuned profile for MongoDB on CentOS/Redhat Linux

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 59.0%
  • Shell 41.0%