-
Notifications
You must be signed in to change notification settings - Fork 47
Home
Welcome to the MongoDB for YCSB wiki.
You can read about YCSB here: https://github.com/brianfrankcooper/YCSB/wiki
YCSB has not been actively maintained in the recent past and here is where you will find the current version of what we believe is correct version of MongoDB YCSB DB Client.
The files in this repo can be merged with original, or they can be built stand-alone.
The specific file you would need to merge is mongodb/src/main/java/com/yahoo/ycsb/db/MongoDbClient.java
in addition you should update the MongoDB Java Driver version in top level pom.xml to the latest version, currently it is set to 2.13.0.
This code has also been successfully tested with upcoming 3.0.0-rc0 Java driver.
As its options the workload takes all the standard YCSB options, plus:
- mongodb.url can be either standard name of host:port or the full MongoDB URI connection string.
- batchsize specifies how many documents per insert should be passed to MongoDB.
- default is 1 to match original which passed them one at a time; change with
-p batchsize=100
- default is 1 to match original which passed them one at a time; change with
- mongodb.maxconnections is ignored
- connectionsPerHost is always set to number of threads (-threads)
If you have any questions or suggestions, please post them to MongoDB-user Google Group.