Struggling with same issue. Any input on this? Struggling with same issue. Any input on this? mongodb mongodb

Struggling with same issue. Any input on this?


MongoDB provides multiple connection pool options check this Mongo Connection Pool Options

maxPoolSizeThe maximum number of connections in the connection pool. The default value is 100.

minPoolSizeThe minimum number of connections in the connection pool. The default value is 0.

maxIdleTimeMSThe maximum number of milliseconds that a connection can remain idle in the pool before being removed and closed.

This option is not supported by all drivers.

waitQueueMultipleA number that the driver multiples the maxPoolSize value to, to provide the maximum number of threads allowed to wait for a connection to become available from the pool. For default values, see the MongoDB Drivers and Client Libraries documentation.

waitQueueTimeoutMSThe maximum time in milliseconds that a thread can wait for a connection to become available. For default values, see the MongoDB Drivers and Client Libraries documentation.