Default connection pool changed to 100 with bump to mongodb driver 4.x ? #10809
Labels
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone
Hello,
The default behavior of the connection pool seems to have changed with mongodb driver 4.x and is therefore affecting the mongoose 6.x release. I know this seems to be related to the mongodb driver directly, but maybe someone can help to confirm our experience. If you can confirm that the default maximum pool size is now out of sudden 100, this might need to be noted in the migration guide (as this might have a critical impact on MongoDB servers when application servers scale).
https://github.com/Automattic/mongoose/blob/5.13/package.json (
"mongodb": "3.6.8"
)From the MongoDB Driver documentation (https://mongodb.github.io/node-mongodb-native/3.6/api/global.html#MongoClientOptions)
https://github.com/Automattic/mongoose/blob/master/package.json (
"mongodb": "4.1.1"
)From the MongoDB Driver documentation (https://docs.mongodb.com/drivers/node/current/fundamentals/connection/)
However in their code I can not find a reference to a default value of 10, for me it looks like the default is 100 -> https://github.com/mongodb/node-mongodb-native/search?l=TypeScript&q=maxPoolSize
This would match the behavior we experienced by upgrading to Mongoose 6.x.
The text was updated successfully, but these errors were encountered: