2014-10-04 64 views
3

我用於測試ArangoDB性能arangob,但arangob不能發送請求超過1000 「操作總數:」始終是1000arangob不能發送請求超過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 
+0

arangodb是2.2.3 – Hansen 2014-10-04 08:42:19

回答

4

問題似乎是由--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 
+0

非常感謝!用--delay true,arangob是可以的。 – Hansen 2014-10-07 04:41:57

+0

./arangob --server.endpoint「tcp://127.0.0.1:8529」--delay true --requests 50000 --test-case document --complexity 10 --batch-size 0 --concurrency 1 Operations per秒率:3067.167579 – Hansen 2014-10-07 04:42:20

+0

./arangob --server.endpoint「tcp://127.0.0.1:8529」--delay true --requests 50000 --test-case document --complexity 10 --batch-size 10 - 併發性10每秒操作速率:19880.179646 – Hansen 2014-10-07 04:43:22

0

另一個輸出如下:

$ ./arangob --server.endpoint "tcp://127.0.0.1:8529" --delay --requests 50000 --test-case document --complexity 10 --batch-size 20 --concurrency 1 
starting threads... 
executing tests... 
2014-10-02T07:00:04Z [15556] INFO number of operations: 100 
2014-10-02T07:00:04Z [15556] INFO number of operations: 150 

Total number of operations: 1000, keep alive: yes, async: no, batch size: 20, concurrency level (threads): 1 
Test case: document, complexity: 10, database: '_system', collection: 'ArangoBenchmark' 
Total request/response duration (sum of all threads): 0.056860 s 
Request/response duration (per thread): 0.056860 s 
Time needed per operation: 0.000062 s 
Time needed per operation per thread: 0.000062 s 
Operations per second rate: 16058.071333 
Elapsed time since start: 0.062274 s 

$ ./arangob --server.endpoint "tcp://127.0.0.1:8529" --delay --requests 50000 --test-case document --complexity 10 --batch-size 20 --concurrency 10 
starting threads... 
executing tests... 
2014-10-02T07:00:18Z [15568] INFO number of operations: 100 

Total number of operations: 1000, keep alive: yes, async: no, batch size: 20, concurrency level (threads): 10 
Test case: document, complexity: 10, database: '_system', collection: 'ArangoBenchmark' 
Total request/response duration (sum of all threads): 0.339047 s 
Request/response duration (per thread): 0.033905 s 
Time needed per operation: 0.000041 s 
Time needed per operation per thread: 0.000408 s 
Operations per second rate: 24507.312513 
Elapsed time since start: 0.040804 s