Skip to content
Asya Kamsky edited this page Mar 22, 2015 · 4 revisions

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, currently set to 2.13.0.

This code has also been successfully tested with upcoming 3.0.0-beta 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 100
    • original YCSB passed them one at a time, simulate that behavior with -p batchsize=1
  • mongodb.maxconnections is ignored and maxconnections is always set to number of threads (-threads)
Clone this wiki locally