Hello !
I have noticed that mongo uses a lot of threads and seen in the documentation that :
the server will use one thread per TCP connection
Isn’t this quite dangerous for the server ? In high load context (for instance a lot of concurrent access), the server will open a lot of threads and performance will drop.
Your advice is to manager a pool of connection application side but there is also a recommendation to set up a mongoS on each application server.
Obviously, this is not possible to manage to global limitation of concurrent connection across multiple application server. How can it scale ?
Would a thread pool be easy to implement to avoid to create thousands of threads ? Do you plan to fix this ?
--
Grégoire