Skip to content

Instantly share code, notes, and snippets.

@CarlosEspejo
Last active May 10, 2024 06:09
Show Gist options
  • Save CarlosEspejo/adfb7a6c352a3159eb3d to your computer and use it in GitHub Desktop.
Save CarlosEspejo/adfb7a6c352a3159eb3d to your computer and use it in GitHub Desktop.
Fix mongo for NUMA hardware
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