1

When I login to Mongo Shell in my production server, running Oracle Linux v7, I see the message:

WARNING: You are running on a NUMA machine.

To address this, I have used the init script as suggested here : https://github.com/mongodb/mongo/blob/master/rpm/init.d-mongod.

I have restarted mongod as well as the machine, yet it looks like my mongod does not start with the --interleave=all setting and I see the same warning on start up. Any help?

  • Check here: askubuntu.com/questions/293468/… – JJussi Oct 24 '17 at 18:58
  • thank you @jjussi. I have added an init.d/mongod file that has the NUMACTL args. I have restarted mongod and the vm instance multiple time to no effect. – Gnana Oct 24 '17 at 19:26
  • And you cannot disable NUMA for that machine? – JJussi Oct 25 '17 at 3:37
  • Nope. From where I am, BIOS is totally out of reach, if that's what you mean. I have full control on MongoDB though. – Gnana Oct 25 '17 at 5:23
  • So your startup command is /usr/bin/numactl --interleave=all /usr/bin/mongod? You can test that directly at command line. – JJussi Oct 25 '17 at 17:10
1

Your startup script doesn't actually use numactl command to start mongod.

Your startup command should be:

/usr/bin/numactl --interleave=all /usr/bin/mongod

See also a similar question at AskUbuntu: How should I start MongoDB on a NUMA machine?

  • You could explain why this works – ypercubeᵀᴹ Nov 4 '17 at 17:01
  • As original question maker wrote, his startup script didn't actually use numactl command to start mongod – JJussi Nov 4 '17 at 17:17
  • and it was ignoring my init.d script since there was a service file – Gnana Nov 4 '17 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.