уменьшить кол-во одновременных подключений проблематично.
MongoDB.Driver.MongoWaitQueueFullException
The wait queue for acquiring a connection to server localhost:27017 is full.
https://mongodb.github.io/mongo-java-driver/3.9/javadoc/com/mongodb/ConnectionString.html Одна из двух этих опций, в зависимости от того во что уперлись Connection pool configuration: • maxPoolSize=n: The maximum number of connections in the connection pool. • waitQueueMultiple=n : this multiplier, multiplied with the maxPoolSize setting, gives the maximum number of threads that may be waiting for a connection to become available from the pool. All further threads will get an exception right away.
Обсуждают сегодня