You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thank you for coming up with the sysbench-based benchmark for MongoDB. I am trying to run this test on a MongoDB replicaset (that is running as a kubernetes statefulset). Followed the instructions in the README.md, and was able to execute the "prepare" step successfully (confirmed by perform "show dbs" on the MongoDB primary instance). However, the "run" step fails with error :
FATAL: `thread_run' function failed: oltp-mongo.lua:222: BatchSize value must be non-negative, but received: -1
Could you please help me on this ?
Here are the environment details :
Test harness (Where the test is launched from) : Ubuntu 16.04 x64 VM
MongoDB version : 3.4.9
MongoDB container image : "mongo" official image from dockerhub
Running steps as a user with sudo permissions for package installation
Command outputs :
kart@Master:~/sysbench-mongodb-lua$ sysbench oltp-mongo.lua --tables=10 --threads=10 --table-size=100 --mongodb-db=sbtest --mongodb-host=10.44.0.3 --mongodb-port=27017 prepare
sysbench 1.0.9 (using bundled LuaJIT 2.1.0-beta2)
Initializing worker threads...
Creating table 'sbtest10'...
Inserting 100 records into 'sbtest10'
:
Creating table 'sbtest7'...
Inserting 100 records into 'sbtest7'
:
Creating a secondary index on 'sbtest7'...
However, the run test fails with the following error :
kart@Master:~/sysbench-mongodb-lua$ sysbench oltp-mongo.lua --tables=10 --threads=10 --table-size=100 --mongodb-db=sbtest --mongodb-host=10.44.0.3 --mongodb-port=27017 --time=120 run
sysbench 1.0.9 (using bundled LuaJIT 2.1.0-beta2)
Running the test with following options:
Number of threads: 10
Initializing random number generator from current time
Initializing worker threads...
Threads started!
FATAL: `thread_run' function failed: oltp-mongo.lua:222: BatchSize value must be non-negative, but received: -1
The text was updated successfully, but these errors were encountered:
Karthik,
Ok, I understand problem and have solution:
problem: luarocks mongorover rock package is outdated. I don't know how it
possible and why it happened that's out of my scope.
Despite the fact that MongoDB docs mentioned that BatchSize can be negative
- on the protocol level that's impossible:
...
mongoc_collection_find (mongoc_collection_t *collection,
mongoc_query_flags_t flags,
uint32_t skip,
uint32_t limit,
uint32_t batch_size,
...
batch_size: A uint32_t containing batch size of document result sets or 0
for default. Default is 100.
...
solution: build mongorover by yourself
git clone https://github.com/mongodb-labs/mongorover.git
cd mongorover
luarocks build mongorover
It should build and install new version of mongorover driver that will work
properly.
Hello @alexey2k
Firstly, thank you for coming up with the sysbench-based benchmark for MongoDB. I am trying to run this test on a MongoDB replicaset (that is running as a kubernetes statefulset). Followed the instructions in the README.md, and was able to execute the "prepare" step successfully (confirmed by perform "show dbs" on the MongoDB primary instance). However, the "run" step fails with error :
Could you please help me on this ?
Here are the environment details :
Command outputs :
However, the run test fails with the following error :
The text was updated successfully, but these errors were encountered: