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
Related Q & A:
- How to get all intersections between two simple polygons in O(n+k?Best solution by Computational Science
- How to calculate the intersection of two polygons?Best solution by Stack Overflow
- How to search in rails from two models?Best solution by Stack Overflow
- How to write Join Query for two tables without foreign key in Yii2?Best solution by Stack Overflow
- How can I make $300 in two weeks?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.