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

Rapid Increase in Connections Causes Severe Performance Degradation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.2
    • Affects Version/s: 2.2.25
    • Component/s: None
    • Environment:
      Node/Mongo DB 2.2.25

      Using the simple test app below, in addition to the attached jMeter script, the driver experiences significant performance degradation especially when initially scaling the connection pool.

      The logic in pool.js has evolved many times and we've been constantly struggling with the driver to mantain an acceptable level of production traffic. The driver will fall apart when significant traffic spikes are seen (NewRelic graphs available) and this needs to get addressed.

      Steps to reproduce:

      1. Build and run node.js sample code below
      2. Open jMeter and open 256 or 512 threads to localhost:3000
      3. Execute test
      4. Open POSTman or similar and execute a query to the server, observe a significant delay which gradually reduces once the box has reached load
      5. In comparison, build .12 of the mongodb-core driver does NOT exhibit this extreme slowdown and is significantly faster

      Sample code:
      "dependencies":

      { "mongodb": "2.2.25", "mongodb-url": "2.0.0", }
      tloc
      

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            abenamou Andreas Benamou
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: