Because pegasus/conf is added into classpath by default, so these configuration files will be
found automatically. Also You can specify configuration file on the command line via -p, e.g.:
# example for specifying. If you have executed this command, skip the "Load the data" phase in section 5.
./bin/ycsb load pegasus -s -P workloads/workload_pegasus \
-p "pegasus.config=file://./pegasus/conf/pegasus.properties" > outputLoad.txt
Yahoo! Cloud System Benchmark (YCSB)
Links
http://wiki.github.com/brianfrankcooper/YCSB/
https://labs.yahoo.com/news/yahoo-cloud-serving-benchmark/ ycsb-users@yahoogroups.com
Test Pegasus
This section describes how to run YCSB on Pegasus.
1. Start Pegasus service
Ask to Pegasus cluster manager to start the cluster, and create table
usertablefor test.If you want to use a different table name, please config the
tableoption inworkloads/workload_pegasus.2. Install Java and Maven
See step 2 in
mongodb/README.md.3. Set up YCSB
Before set up YCSB, you should install Pegasus Java Client firstly:
Git clone YCSB and build it:
4. Configuration
A default pegasus configuration file is provided in
pegasus/conf/pegasus.properties.A default log4j configuration file is provided in
pegasus/conf/log4j.properties.Because
pegasus/confis added into classpath by default, so these configuration files will be found automatically. Also You can specify configuration file on the command line via-p, e.g.:5. Load data and run tests
Load the data:
Run the workload test:
6. Distributed running tests
Generate
pegasus-YCSB-${VERSION}.tar.gzpackage:Transfer package to target machines, then:
Getting Started
Download the latest release of YCSB:
Set up a database to benchmark. There is a README file under each binding directory.
Run YCSB command.
On Linux:
On Windows:
Running the
ycsbcommand without any argument will print the usage.See https://github.com/brianfrankcooper/YCSB/wiki/Running-a-Workload for a detailed documentation on how to run a workload.
See https://github.com/brianfrankcooper/YCSB/wiki/Core-Properties for the list of available workload properties.
Building from source
YCSB requires the use of Maven 3; if you use Maven 2, you may see errors such as these.
To build the full distribution, with all database bindings:
To build a single database binding: