YCSB/mongodb
Robert J. Moore 92d86e74a8 gh-95 Update the MongoDB driver to use a singleton Mongo instance for
each test client.

Add a control (via properties) for the number of connections the Mongo
instance will create/use.
2012-12-16 01:54:19 -05:00
..
src/main/java/com/yahoo/ycsb/db gh-95 Update the MongoDB driver to use a singleton Mongo instance for 2012-12-16 01:54:19 -05:00
README.md gh-95 Update the MongoDB driver to use a singleton Mongo instance for 2012-12-16 01:54:19 -05:00
pom.xml

README.md

Quick Start

This section describes how to run YCSB on MongoDB running locally.

1. Start MongoDB

First, download MongoDB and start mongod. For example, to start MongoDB on x86-64 Linux box:

wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.8.3.tgz
tar xfvz mongodb-linux-x86_64-1.8.3.tgz
mkdir /tmp/mongodb
cd mongodb-linux-x86_64-1.8.3
./bin/mongod --dbpath /tmp/mongodb

2. Set Up YCSB

Clone the YCSB git repository and compile:

git clone git://github.com/brianfrankcooper/YCSB.git
cd YCSB
mvn clean package

3. Run YCSB

Now you are ready to run! First, load the data:

./bin/ycsb load mongodb -s -P workloads/workloada

Then, run the workload:

./bin/ycsb run mongodb -s -P workloads/workloada

See the next section for the list of configuration parameters for MongoDB.

MongoDB Configuration Parameters

mongodb.url (default: mongodb://localhost:27017)

mongodb.database (default: ycsb)

mongodb.writeConcern (default safe)

mongodb.maxconnections (default 10)