arangob не может отправлять запросы более 1000

Я использую 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

person Hansen    schedule 04.10.2014    source источник


Ответы (2)


Проблема, по-видимому, вызвана параметром --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
person stj    schedule 06.10.2014
comment
Большое спасибо! Если --delay true, с арангобом все в порядке. - person Hansen; 07.10.2014
comment
./arangob --server.endpoint tcp://127.0.0.1:8529 --delay true --requests 50000 --test-case document --complexity 10 --batch-size 0 --concurrency 1 Скорость операций в секунду: 3067.167579 - person Hansen; 07.10.2014
comment
./arangob --server.endpoint tcp://127.0.0.1:8529 --delay true --requests 50000 --test-case document --complexity 10 --batch-size 10 --concurrency 10 Скорость операций в секунду: 19880.179646 - person Hansen; 07.10.2014

Другой вывод следующий:

$ ./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
person Hansen    schedule 04.10.2014