Skip to content

supermt/batch-migration-kvrocks

 
 

Repository files navigation

Building kvrocks

requirements

  • g++ (required by c++11, version >= 4.8)
  • autoconf automake libtool cmake

Build

# Ubuntu/Debian
sudo apt update
sudo apt-get install gcc g++ make cmake autoconf automake libtool
$ ./build.sh build 

Start the client to access the system

You can first install the redis-cli by apt, as apt-get install redis-tools

Run cluster as following commands

it create a cluster with 6 nodes on single machine with different ports. 3 master + 3 slave

Start the system and watch

cd tools/try_cluster/
./try_cluster.sh start
#./try_cluster.sh watch
redis-cli -h 127.0.0.1 -p 30001 cluster nodes

Stop the system

cd tools/try_cluster/
./try_cluster.sh stop
exit 
redis-cli -h 127.0.0.1 -p 30001 clusterx migrate 0 kvrockskvrockskvrockskvrockskvrocksnode3
redis-cli -h 127.0.0.1 -p 30001 clusterx setslot 0 NODE kvrockskvrockskvrockskvrockskvrocksnode3 2  
redis-cli -h 127.0.0.1 -p 30002 clusterx setslot 0 NODE kvrockskvrockskvrockskvrockskvrocksnode3 2
redis-cli -h 127.0.0.1 -p 30003 clusterx setslot 0 NODE kvrockskvrockskvrockskvrockskvrocksnode3 2
redis-cli -h 127.0.0.1 -p 30004 clusterx setslot 0 NODE kvrockskvrockskvrockskvrockskvrocksnode3 2
redis-cli -h 127.0.0.1 -p 30005 clusterx setslot 0 NODE kvrockskvrockskvrockskvrockskvrocksnode3 2
redis-cli -h 127.0.0.1 -p 30006 clusterx setslot 0 NODE kvrockskvrockskvrockskvrockskvrocksnode3 2

Use YCSB to do the benchmark

Under the dir ycsbcore is the source code of YCSB workload generator

We also check out the newest version (July 3rd 2022) of redis-plus-plus as the request client

Also, you can use the java version in ycsb dir, which is the original version of YCSB.

cd YCSB-C/
make -j4
./ycsb-redis -db redis -threads 1 -P workloads/workloada.spec -host 127.0.0.1 -port 30001 -nodes 6

About

The baseline system for shard migration

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C++ 62.1%
  • Tcl 33.5%
  • CMake 1.4%
  • Python 1.1%
  • Shell 1.1%
  • Batchfile 0.4%
  • Other 0.4%