Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Antarctica000 committed Nov 10, 2024
1 parent 70c6342 commit 97b6b9a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 302 deletions.
3 changes: 2 additions & 1 deletion cmake/braft.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ ExternalProject_Add(
DEPENDS brpc
# The pr on braft is not merged, so I am using my own warehouse to run the test for the time being
GIT_REPOSITORY "https://github.com/pikiwidb/braft.git"
GIT_TAG v1.1.2.1
GIT_TAG v1.1.2-alpha2
URL_HASH SHA256=6afed189e97b7e6bf5864c5162fab3365b07d515fe0de4c1b0d61eff96cf772f
GIT_SHALLOW true
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
Expand Down
23 changes: 23 additions & 0 deletions etc/script/save_load.sh
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
301 changes: 0 additions & 301 deletions src/pikiwidb.cc

This file was deleted.

0 comments on commit 97b6b9a

Please sign in to comment.