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?

8
  • Check here: askubuntu.com/questions/293468/…
    – JJussi
    Commented Oct 24, 2017 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
    Commented Oct 24, 2017 at 19:26
  • And you cannot disable NUMA for that machine?
    – JJussi
    Commented Oct 25, 2017 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
    Commented Oct 25, 2017 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
    Commented Oct 25, 2017 at 17:10

1 Answer 1

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?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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