Last active
May 10, 2024 06:09
-
-
Save CarlosEspejo/adfb7a6c352a3159eb3d to your computer and use it in GitHub Desktop.
Fix mongo for NUMA hardware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ubuntu 15.04 | |
sudo apt-get install numactl | |
# Open systemd file | |
# find /etc/systemd/ | grep -i mongo | |
/etc/systemd/system/multi-user.target.wants/mongod.service | |
[Unit] | |
Description=An object/document-oriented database | |
Documentation=man:mongod(1) | |
[Service] | |
User=mongodb | |
# Added the numactl call | |
ExecStart=/usr/bin/numactl --interleave=all /usr/bin/mongod --config /etc/mongodb.conf | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment