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

benchRun could leverage (shell) host/port informations

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.11, 2.7.6
    • Component/s: Performance
    • Environment:
      $ uname -a
      Linux ip-172-31-18-197 3.10.42-52.145.amzn1.x86_64 #1 SMP Tue Jun 10 23:46:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
    • Product Performance

      If "host" is not overriden, benchRun always to localhost:27017, even if the shell might be connected to a remote server. It could, instead, try to connect to the same host/port where the shell is directed.

      ./mongo --host 54.68.57.163 --port 27017
      MongoDB shell version: 2.7.7-pre-
      connecting to: 54.68.57.163:27017/test
      > load("insert.js")
      2014-09-11T00:06:19.991+0000 W NETWORK  Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
      2014-09-11T00:06:19.991+0000 W NETWORK  Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
      2014-09-11T00:06:19.993+0000 F -        terminate() called.
      
       0x7ec599 0x7ec368 0x7ffe893a16c6 0x7ffe893a16f3 0x7ffe893a191f 0x78a881 0x78a8cc 0x75bed6 0x764649 0x839233 0x7ffe89a5af18 0x7ffe88b6ce9d
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"400000","o":"3EC599"},{"b":"400000","o":"3EC368"},{"b":"7FFE89343000","o":"5E6C6"},{"b":"7FFE89343000","o":"5E6F3"},{"b":"7FFE89343000","o":"5E91F"},{"b":"400000","o":"38A881"},{"b":"400000","o":"38A8CC"},{"b":"400000","o":"35BED6"},{"b":"400000","o":"364649"},{"b":"400000","o":"439233"},{"b":"7FFE89A53000","o":"7F18"},{"b":"7FFE88A8A000","o":"E2E9D"}],"processInfo":{ "mongodbVersion" : "2.7.7-pre-", "gitVersion" : "e1c24123e023b47d8b279f77ba00cbf61e5a1347", "uname" : { "sysname" : "Linux", "release" : "3.10.42-52.145.amzn1.x86_64", "version" : "#1 SMP Tue Jun 10 23:46:43 UTC 2014", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "534119CE5B6F469D13580A51B350B7AABD817411" }, { "b" : "7FFFF2CFE000", "elfType" : 3, "buildId" : "422398C00613A4323A5E0C656ED6BE4BCFF5FD15" }, { "b" : "7FFE89A53000", "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "3C51D8CB39ED16242013CB77B0125707C6F34406" }, { "b" : "7FFE8984B000", "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "92B6FB6A7CF87B575FE6043F95639C1A081E2E2A" }, { "b" : "7FFE89647000", "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "F08BBD07F4042BC8D0D314F5E1F7F5D26F028CFB" }, { "b" : "7FFE89343000", "path" : "/usr/lib64/libstdc++.so.6", "elfType" : 3, "buildId" : "5E2AE3B2E1D3984B4DE32FE73D221D8C425516E5" }, { "b" : "7FFE89045000", "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "DFB15C9F2E7C575E1954C19CEFC2842DE2C265DB" }, { "b" : "7FFE88E2F000", "path" : "/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "DB655E06F0F4F7B4EC561BB7E620F5D5BC4F1C54" }, { "b" : "7FFE88A8A000", "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "3B97A7F435805785DFD11096836F4E904FFF2599" }, { "b" : "7FFE89C6F000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "CAD953A4B324B3E3AA1449742558362857E826F2" } ] }}
       mongo(_ZN5mongo15printStackTraceERSo+0x29) [0x7ec599]
       mongo(+0x3EC368) [0x7ec368]
       libstdc++.so.6(+0x5E6C6) [0x7ffe893a16c6]
       libstdc++.so.6(+0x5E6F3) [0x7ffe893a16f3]
       libstdc++.so.6(+0x5E91F) [0x7ffe893a191f]
       mongo(_ZN5mongo9uassertedEiPKc+0x151) [0x78a881]
       mongo(+0x38A8CC) [0x78a8cc]
       mongo(_ZNK5mongo14BenchRunConfig16createConnectionEv+0x106) [0x75bed6]
       mongo(_ZN5mongo14BenchRunWorker3runEv+0x29) [0x764649]
       mongo(+0x439233) [0x839233]
       libpthread.so.0(+0x7F18) [0x7ffe89a5af18]
       libc.so.6(clone+0x6D) [0x7ffe88b6ce9d]
      -----  END BACKTRACE  -----
      
      $ cat insert.js 
      ops = [];
      ops.push({ op: "insert",
                 ns: "test.foo",
                 doc : { k : { "#RAND_STRING" : [ 10 ] }}});
      
      res = benchRun( { ops : ops,
                        parallel: 2,
                        seconds: 10
                      });
      

            Assignee:
            backlog-server-perf [DO NOT USE] Backlog - Performance Team
            Reporter:
            davide.italiano Davide Italiano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: