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

benchRun might return incorrect stats values

    XMLWordPrintableJSON

Details

    • Minor Change
    • ALL
    • CAP - 3.1.5

    Description

      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
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: