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

Connection pool only opening single connection with 500 request per second load

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 2.2.22
    • Fix Version/s: 2.2.23
    • Component/s: MongoDB 3.2
    • Labels:
    • Environment:
      Ubuntu 16.04 running under vagrant / virtual box. mongod 3.2.6 running on localhost in vm with standalone setup. Node version 0.10.32, driver 2.2.22.
    • Case:

      Description

      NodeJS and mongod run on same instance and the host runs the run_test.sh command which utilizes httperf to generate a load of 500 requests per second. Running "db.serverStatus().connections" gives back "2" (one for the shell running the command and one for the node js application) while the test is running.

      While testing same code under 2.1.18, the connection opens the five connections under the same load which allows it to handle ~500 requests per second rather than the ~100 request per second on 2.2.22.

        Attachments

        1. app_new.js
          2 kB
        2. app.js
          1 kB
        3. run_test.sh
          0.1 kB
        4. Vagrantfile
          3 kB

          Activity

            People

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            dustin.brockert Dustin Brockert
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: