-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70c6342
commit 97b6b9a
Showing
3 changed files
with
25 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
killall -9 kiwi | ||
mkdir leader follower1 | ||
|
||
|
||
PWD=`pwd` | ||
PROJECT_HOME="${PWD}/../" | ||
BIN="${PROJECT_HOME}/bin/kiwi" | ||
CONF="${PROJECT_HOME}/etc/conf/kiwi.conf" | ||
cd leader && ulimit -n 99999 && rm -fr * && ${BIN} ${CONF} --port 7777 & | ||
cd follower1 && ulimit -n 99999 && rm -fr * && ${BIN} ${CONF} --port 8888 & | ||
sleep 5 | ||
|
||
redis-cli -p 7777 raft.cluster init | ||
|
||
redis-benchmark -p 7777 -c 5 -n 10000 -r 10000 -d 1024 -t hset | ||
redis-cli -p 7777 raft.node dosnapshot | ||
redis-benchmark -p 7777 -c 5 -n 10000 -r 10000 -d 1024 -t hset | ||
redis-cli -p 7777 raft.node dosnapshot | ||
redis-benchmark -p 7777 -c 5 -n 10000 -r 10000 -d 1024 -t hset | ||
|
||
redis-cli -p 8888 raft.cluster join 127.0.0.1:7777 |
This file was deleted.
Oops, something went wrong.