Can a MongoDB key have two arrays?

MongoDB: How would RAM be used if two mongod instances run on same machine?

  • Since MongoDB uses OS mapped file, it would use up all RAM as the data grows. It would turn cold into disk and keep hot data in RAM so it can still be efficient. Now I am wondering what if two or more mongod instances running on same machine. Would two mongod instances fight with each other for RAM and hurt performance?

  • Answer:

    Would two mongod instances fight with each other for RAM and hurt performance? Yes, they would fight for resources. But this is true of any two apps you want to use that both require as much as RAM as possible. I mean, you would not try to run two version of Quake at the same time on a single machine. There is limited benefit to running two instances on the same machine.

Gaëtan Voyer-Perrault at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.