Search code examples
mongodbconfigurationmongo-shelldistributed-databasedatabase

How to change connectionsPerHost and threadsAllowedToBlockForConnectionMultiplier configuration in mongdb through mongo shell?


I need to change threadsAllowedToBlockForConnectionMultiplier and connectionsPerHost values in mongodb from their default value through mongo shell instead of a program. How can I go about it?


Solution

  • These are settings for the Java driver. You can't set them through the mongo shell because they are properties of the Java client and not the mongo shell or the server itself.