我使用arangob来测试ArangoDB性能,但是arangob不能发送超过1000个请求。“操作总数:”始终为1000。
我的终端输出如下。
$./arangob --server.endpoint "tcp://127.0.0.1:8529" --delay --requests 50000 --test-case document --complexity 10 --batch-size 0 --concurrency 1
starting threads...
executing tests...
2014-10-02T06:58:39Z [15498] INFO number of operations: 100
2014-10-02T06:58:39Z [15498] INFO number of operations: 150
2014-10-02T06:58:39Z [15498] INFO number of operations: 200
2014-10-02T06:58:39Z [15498] INFO number of operations: 250
2014-10-02T06:58:39Z [15498] INFO number of operations: 300
2014-10-02T06:58:39Z [15498] INFO number of operations: 350
2014-10-02T06:58:39Z [15498] INFO number of operations: 400
2014-10-02T06:58:39Z [15498] INFO number of operations: 450
2014-10-02T06:58:39Z [15498] INFO number of operations: 500
Total number of operations: 1000, keep alive: yes, async: no, batch size: 0, concurrency level (threads): 1
Test case: document, complexity: 10, database: '_system', collection: 'ArangoBenchmark'
Total request/response duration (sum of all threads): 0.207963 s
Request/response duration (per thread): 0.207963 s
Time needed per operation: 0.000224 s
Time needed per operation per thread: 0.000224 s
Operations per second rate: 4469.890637
Elapsed time since start: 0.223719 s
问题似乎是由该--delay
选项引起的。忽略它可以解决我尝试的问题。现在将调查为什么delay
会引起麻烦。
更新:--delay
需要一个布尔值作为其参数,例如--delay true
。省略参数将使命令行解析器将下一个命令行参数解释为该参数的值--delay
。在您的情况下为--requests
,因此该--requests
选项将被忽略。
因此,命令行应显示为:
./arangob --server.endpoint "tcp://127.0.0.1:8529" --delay true --requests 50000 --test-case document --complexity 10 --batch-size 0 --concurrency 1
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句