Skip to content

Commit

Permalink
shell file
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxiaoshuai123 committed Mar 26, 2024
1 parent a5a5a9e commit df254d7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions save_load.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
killall -9 pikiwidb
mkdir leader follower1 follower2

cd leader && ulimit -n 99999 && rm -fr * && ../bin/pikiwidb ../pikiwidb.conf --port 7777 & wait

cd follower1 && ulimit -n 99999 && rm -fr * && ../bin/pikiwidb ../pikiwidb.conf --port 8888 & wait

redis-cli -p 7777 raft.cluster init wait
redis-benchmark -p 7777 -c 5 -n 10000 -r 10000000 -d 1024 -t set

wait


redis-cli -p 7777 raft.node DSS wait
redis-cli -p 7777 raft.node DSS wait

redis-cli -p 8888 raft.cluster join 127.0.0.1:7777 wait

echo "done"


0 comments on commit df254d7

Please sign in to comment.