Hi
I have 2 mongod process running on my server and this server is part of a shared cluster.
Generally, it’s not recommended to run more than one mongod
per server, since each mongod
process would compete for the same resources in the server, creating a resource contention.
My db has total of 6 GB Data (5GB Data + 1GB Index), but one of this process takes 30% of server memory (80GB) .
I’m not clear on the 30% number. Is it taking 30% of 80GB (24GB)? MongoDB uses memory for many other things, e.g. aggregation framework process, etc. Also, MongoDB was designed to use as much memory as possible to provide the best performance.
Any comments on this behaviour please?
The memory usage you mentioned is not unexpected. Are you seeing any performance issues due to this?
To ensure that your MongoDB server is running smoothly, I would recommend you follow the guidelines in the Production Notes.
If you have further questions, could you provide more details:
Best regards
Kevin