mongodb community Performance Tuning


i am trying to create 1lakh connection but mongod service disconnecting while it reaches 32,000 … and query processing also in low count … any ideas ?

My Server has 16GB RAM with 8 core processor…


My understanding of 1lakh is you are saying you want to make 100,000 connections, this violates TCP limits which is why you are having issues > 32k. Some testing could be done with using multiple IP address bindings but you will get into challenges with memory and the kernel TCP slots. Generally to do this I would suggest docker or virtualization to have more secondaries share the load of doing this, or have connection much more short lived so you “live” connections are much less than 100k, which will overload your current CPUs as much as anything else trying to manage that many things active at the same time.

David Murphy