Giter VIP home page Giter VIP logo

ycsb-kvstore-comparison's Introduction

Memcached, Redis, and Aerospike Key-Value Store Empirical Comparison

This project empirically evaluates Memcached, Redis and Aerospike key-value store leveraging Yahoo! Cloud System Benchmark (YCSB) with various workloads and benchmarking settings aiming to provide useful insight for each kv-store.

Note

  1. The code in this repository are based on YCSB repository.
  2. Modified code is in redis and redis-binding directory. (Diff)
  3. Automated scripts are added for benchmarking the three databases.
  4. Configuration files for running YCSB in our benchmarking is available in benchmark directory.
  5. Sample configuration files for running YCSB in our benchmarking is available in benchmark/db_configs directory.

Setting up the databases on Ubuntu 12.04

Installing Memcached

Installing via apt-get
apt-get -y update
apt-get -y install memcached

Changing the configuration
vim /etc/memcached.conf

Running Memcached server
service memcached start

Installing Redis

Installing via tarball wget http://download.redis.io/redis-3.2.5.tar.gz
tar xvzf redis-3.2.5.tar.gz
cd redis-3.2.5
make
make install

Changing configuration file
vim redis-3.2.5/redis.conf

Running Redis server
redis-server redis-3.2.5/redis.conf

Installing Aerospike

Instsalling Aerospike server
wget -O aerospike.tgz 'http://aerospike.com/download/server/latest/artifact/ubuntu12'
tar -xvf aerospike.tgz
cd aerospike-server-community-*-ubuntu12
sudo ./asinstall

Changing configuration file
vim /etc/aerospike/aerospike.conf

Runing Aerospike server
`sudo service aerospike start &&
sudo tail -f /var/log/aerospike/aerospike.log | grep cake

wait for it. "service ready: soon there will be cake!"`

Running the benchmarking

Database server side machine(s)

Start the databases server(s) as instructed above.

Client side machine

Install the modified YCSB project
git clone https://github.com/anthonyaje/ycsb-kvstore-comparison.git

Notice before running cluster mode benchmarking
cd ~/ycsb-kvstore-comparison/redis-binding
cp -rf ./cluster-lib/* ./lib/

Notice before running single node benchmarking
cd ~/ycsb-kvstore-comparison/redis-binding
cp -rf ./single-lib/* ./lib/

Execute the YCSB load phase
./load_benchmark.sh [redis|riak|memcached] [single|cluster] [balanced|write_heavy|read_heavy]

Execute the YCSB run phase
./run_benchmark.sh [redis|riak|memcached] [single|cluster] [balanced|write_heavy|read_heavy]
This script will execute 4 iterations of YCSB run phase for each number of threads 1 4 8 12 16 20 24 28 32.
The results will be generated in results/$1/$2/$3/out_run_$t-$k where
$1 $2 $3 are the parameters passed when executing the scripts
$t and $k are #thread and #iteration.

Post benchmarking

Preprocessing the results

Remove the result for the 1st run (the result for the first cold start)
cd to the results directory
rm out_run_*-1

Processing the bencmarking results

Calculate the average throughput and latencies
cd to the results directory
cp ~/ycsb-kvstore-comparison/calc_* ./
./calc_tp_avg.sh ./calc_lat_read_avg.sh
./calc_lat_read_avg.sh
This scripts generate tp_avg, lat_read_avg, and lat_write_avg that contain the average throughput, read latency, and write latency for each #thread respectively.

Contributors

Anthony
Yaganti Naga Malleswara Rao

ycsb-kvstore-comparison's People

Contributors

anthonyaje avatar

Stargazers

Hee Won Lee avatar Raghavendra Prabhu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.