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

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.23
    • Affects Version/s: 2.2.22
    • Component/s: MongoDB 3.2
    • None
    • 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.

      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.

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

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            dustin.brockert@mongodb.com Dustin Brockert (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: