From ca88bb9d9b733417a1a5f248db4fdbd0d08bb60b Mon Sep 17 00:00:00 2001 From: dingxiaoshuai123 <2486016589@qq.com> Date: Tue, 26 Mar 2024 16:11:37 +0800 Subject: [PATCH] shell file --- save_load.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 save_load.sh diff --git a/save_load.sh b/save_load.sh new file mode 100755 index 000000000..4a6ad251b --- /dev/null +++ b/save_load.sh @@ -0,0 +1,19 @@ +#!/bin/bash +killall -9 pikiwidb +mkdir leader follower1 follower2 + +cd leader && ulimit -n 99999 && rm -fr * && ../bin/pikiwidb ../pikiwidb.conf --port 7777 & + +cd follower1 && ulimit -n 99999 && rm -fr * && ../bin/pikiwidb ../pikiwidb.conf --port 8888 & +sleep 10 +redis-cli -p 7777 raft.cluster init +redis-benchmark -p 7777 -c 5 -n 10000 -r 10000000 -d 1024 -t set + + +redis-cli -p 7777 raft.node DSS +redis-cli -p 7777 raft.node DSS + +redis-cli -p 8888 raft.cluster join 127.0.0.1:7777 + + +