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

High rate of reconnections due to Min Pool Size Check

    • 2
    • 1
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      What problem are you facing?

      High rate of reconnections

       

      What driver and relevant dependency versions are you using?

      NodeJS v18.12.1

      MongoDB NodeJS Driver: 4.12.1

      Steps to reproduce?

      Connection string = mongodb://mongo.common?appName=alexa_ap&family=4&connectTimeoutMS=2500&socketTimeoutMS=5000&maxPoolSize=100&minPoolSize=50&w=0&readPreference=secondaryPreferred&journal=false&noDelay=true&useUnifiedTopology=true&useNewUrlParser=true&wtimeoutMS=250&retryReads=false&retryWrites=false&readConcernLevel=available&maxIdleTimeMS=300000&serverSelectionTimeoutMS=750&minHeartbeatFrequencyMS=2000&heartbeatFrequencyMS=20000

      It is possible to observe the reconnections through MongoDB logs. The reconnections starts just after the driver initiate and without any loading. 

        1. image-2022-11-30-14-40-37-564.png
          image-2022-11-30-14-40-37-564.png
          59 kB
        2. mongoserver-logs.json
          170 kB
        3. nodejs-alexa-profiling.cpuprofile
          5.23 MB

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            kaio3henriquemelo@gmail.com Kaio Henrique
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: