Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15017

benchRun might return incorrect stats values

    • Minor Change
    • ALL
    • CAP - 3.1.5

      benchRun results might be slightly incorrect as long as the tool relies on serverStatus() calls rather than collecting stats client side. For the same reason (stats collected server side) two parallel executions of benchRun won't return per-client results (but cumulative results).

      As an added bonus, scotthernandez noticed that if the test lasts < 1 second, the results returned are completely broken, as showed in this testcase (provided by him).

      $ mongo --eval 'printjson(benchRun( { ops : [{op:"command", ns:"test",
      command:{ping:1}}] , parallel : 1 , seconds : .001 , host : db.getMongo().host }
      ))'
      MongoDB shell version: 2.6.1
      connecting to: test
      {
      ...	"command" : 9000
      }
      

            Assignee:
            david.daly@mongodb.com David Daly
            Reporter:
            davide.italiano Davide Italiano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: