0
我需要通過mongo shell而不是程序將mongodb中的threadsAllowedToBlockForConnectionMultiplier
和connectionsPerHost
值從默認值更改爲。我怎麼去解決它?如何通過mongo shell更改mongdb中的connectionsPerHost和threadsAllowedToBlockForConnectionMultiplier配置?
我需要通過mongo shell而不是程序將mongodb中的threadsAllowedToBlockForConnectionMultiplier
和connectionsPerHost
值從默認值更改爲。我怎麼去解決它?如何通過mongo shell更改mongdb中的connectionsPerHost和threadsAllowedToBlockForConnectionMultiplier配置?
這些是Java驅動程序的設置。你不能通過mongo shell來設置它們,因爲它們是Java客戶端的屬性,而不是mongo shell或服務器本身。
我也意識到了它。我終於找到的解決方案與java驅動程序中的修改有關。感謝你的信息。 – Siddharth 2014-10-17 15:35:43