Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3641

Default maxPoolSize is 100?

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      What problem are you facing?

      We are facing the issue that with upgrade to node driver version 4.x the connections to our MongoDB increased in an unexpected amount. Your documentation is describing a default value for maxPoolSize of 10 (https://docs.mongodb.com/drivers/node/current/fundamentals/connection/ ). However from a code perspective it looks like the default value is 100 ( https://github.com/mongodb/node-mongodb-native/search?l=TypeScript&q=maxPoolSize ). This would match the behavior we have discovered.

      Can you please clarify the current default behavior? Thanks.

      What driver and relevant dependency versions are you using?

      * 3.6.8 -> default connection pool seems to be 10

      * 4.1.1 -> default connection pool seems to be 100

       

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            ps@usercentrics.com Philipp Schmiedel
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: