YCSB/ignite
Vishnu Bharathi 940e6a5fff
[ignite] Fixes configuration file path in README (#1388)
2020-01-31 10:42:45 -06:00
..
resources/config [ignite, ignite-sql] Add Apache Ignite clients 'ignite' and 'ignite-sql' (#1118) 2018-07-09 09:28:19 -05:00
src Move all packages from com.yahoo.ycsb to site.ycsb. (#1354) 2019-09-19 13:51:09 -05:00
README.md [ignite] Fixes configuration file path in README (#1388) 2020-01-31 10:42:45 -06:00
pom.xml [version] update master branch to 0.18.0-SNAPSHOT 2019-09-21 01:24:50 -05:00

README.md

Quick Start

This section describes how to run YCSB on Apache Ignite.

1. Set Up YCSB

Git clone YCSB and compile:

git clone http://github.com/brianfrankcooper/YCSB.git
cd YCSB
mvn -pl site.ycsb:ignite-binding -am clean package

2. Start Apache Ignite

1.1 Download latest binary Apache Ignite release

1.2 Copy Ignite configs:

cp YCSB/ignite/resources/config/ignite.xml path/to/apache-ignite-**ignite_version**-bin
cp YCSB/ignite/resources/config/ignite-sql.xml path/to/apache-ignite-**ignite_version**-bin

NOTE: Pay attention that some parameters such us storagePath, walPath, walArchivePath should be overwritten by certain pathes. Also please add ip addresses of your host(s) inside the bean TcpDiscoveryVmIpFinder

1.3 Copy ignite-binding-YCSB version-SNAPSHOT.jar to Ignite libs:

cp YCSB/ignite/target/ignite-binding-**YCSB_version**-SNAPSHOT.jar path/to/apache-ignite-fabric-**ignite_version**-bin/libs

Note: Please use YCSB/ignite/resources/ignite.xml for running IgniteClient tests and ignite-sql.xml for IgniteSqlClient tests.

More information about Apache Ignite WAL (Write Ahead Log): https://apacheignite.readme.io/docs/write-ahead-log

1.4 Start ignite nodes:

cd path/to/apache-ignite-**ignite_version**-bin
bin/**ignite.sh** ignite.xml

or

bin/**ignite.sh** ignite-sql.xml

3. Load Data and Run Tests

Load the data:

cd path/to/YCSB
bin/ycsb load ignite -p hosts="10.0.0.1"
    -s -P workloads/workloada \
    -threads 4 \
    -p operationcount=100000 \
    -p recordcount=100000 \
     > outputload.txt

Note: '10.0.0.1' is ip address of one of hosts where was started Apache Ignite nodes.

Run the workload test with ignite:

cd path/to/YCSB
bin/ycsb run ignite -p hosts="10.0.0.1"
     -s -P workloads/workloada \
     -threads 4 \
     -p operationcount=100000 \
     -p recordcount=100000 \
      > output-ignite.txt

Run the workload test with ignite-sql:

cd path/to/YCSB
bin/ycsb run ignite-sql -p hosts="10.0.0.1"
     -s -P workloads/workloada \
     -threads 4 \
     -p operationcount=100000 \
     -p recordcount=100000 \
      > output-ignite-sql.txt