Hi Anil,
When you say it “consumes all RAM on the host”, do you see any issue, e.g. the mongod
getting killed by OOMkiller, slow performance, etc.? Or does the server stays running normally, but only the RAM usage goes up without any effect on operation?
Does mongo maintains separate cache when its replica members are down ?
No. However I would rehash Cahaba’s question: do your clients/apps use secondary reads? If yes, then it could be the cause. Each client connection to mongod
would use ~1MB of RAM. If you have many clients doing secondary reads, having replica nodes offline would mean that the remaining online nodes are forced to pick up more clients that were previously spread throughout the replica set, and would see a jump in connected clients.
If you’re planing to use replication nodes for scaling purposes, I would recommend you to check out this blog post: Can I use more replica nodes to scale.
In addition:
Mongo DB server 3.6.9
Storage Engine - MMAP
Note that MongoDB 3.6.9 was released in Nov 2018. The latest in the 3.6 series is currently 3.6.17. Please consider upgrading, since there are many improvements from 3.6.10 to 3.6.17.
Also, the MMAPv1 storage engine was removed in MongoDB 4.2 and has been deprecated for some time. Please consider upgrading to WiredTiger. WiredTiger has many advantages vs. MMAPv1 and is now the only officially available storage engine in modern versions of mongod
.
Best regards,
Kevin
When you say it “consumes all RAM on the host”, do you see any issue, e.g. themongod
getting killed by OOMkiller, slow performance, etc.? Or does the server stays running normally, but only the RAM usage goes up without any effect on operation?
No. However I would rehash Cahaba’s question: do your clients/apps use secondary reads? If yes, then it could be the cause. Each client connection tomongod
would use ~1MB of RAM. If you have many clients doing secondary reads, having replica nodes offline would mean that the remaining online nodes are forced to pick up more clients that were previously spread throughout the replica set, and would see a jump in connected clients.
If you’re planing to use replication nodes for scaling purposes, I would recommend you to check out this blog post: Can I use more replica nodes to scale.
In addition:
Mongo DB server 3.6.9
Storage Engine - MMAP
Note that MongoDB 3.6.9 was released in Nov 2018. The latest in the 3.6 series is currently 3.6.17. Please consider upgrading, since there are many improvements from 3.6.10 to 3.6.17.
Also, the MMAPv1 storage engine was removed in MongoDB 4.2 and has been deprecated for some time. Please consider upgrading to WiredTiger. WiredTiger has many advantages vs. MMAPv1 and is now the only officially available storage engine in modern versions ofmongod
.
Best regards,
Kevin
The risk is greatest in a 3-member PSA, since you only need one data-bearing node to go down in order to lose majority writes. However, the risk exists in any set with an arbiter, since they allow you to accept writes when the majority commit point cannot move forward. We are going to recommend all sets with arbiters use enableMajorityReadConcern:"false".
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/51861217-fd98-432e-b9b4-7337189dd93e%40googlegroups.com.