Thursday, November 13, 2014

Benchmarking of Riak (With custom data)

For benchmarking of Riak(NoSQL) i used YCSB instead of basho bench.

Reason is with YCSB we can also benchmark other NoSQL.

Testing steps/documentation can be find here.

https://gist.github.com/metadave/3342251


---


YCSB inserted data as per defined (1 KB) to store customized data.So,it is needed to  apply following changes.

In riak/src/main/java/com/yahoo/ycsb/db/RiakClient13.java

inside public int insert(.....) function

byte[] rawValue = jsonToBytes(values);

Replacing this line with

String data="<your data>";
byte[] rawValue=data.getBytes();

After that run
#mvn clean package


And if you wanted to insert this data only then run the benchmark with

./bin/ycsb load riak-1.3 -P workloads/workloada -p columnfamily=family

-p is used to set parameter

Ref- https://github.com/brianfrankcooper/YCSB/wiki/Running-a-Workload

No comments: