Skip to content

Commit d75e727

Browse files
iosmanthusekexium
andauthored
prepare tikv cluster properly (#352)
* prepare tikv cluster properly Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * fix ilgal config for tikv Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * add some debug info Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * add some debug info Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * add some debug info Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * remove debug info Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * use relative path in ci.yaml Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * add logs for start tiup playground Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * change to do while Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * empty commit Signed-off-by: ekexium <ekexium@fastmail.com> Co-authored-by: ekexium <ekexium@fastmail.com>
1 parent 503047f commit d75e727

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ jobs:
105105
- name: install tiup
106106
run: curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
107107
- name: start tiup playground
108-
run: /home/runner/.tiup/bin/tiup playground nightly --mode tikv-slim --kv 3 --without-monitor --kv.config /home/runner/work/client-rust/client-rust/config/tikv.toml --pd.config /home/runner/work/client-rust/client-rust/config/pd.toml &
108+
run: |
109+
~/.tiup/bin/tiup install tikv:nightly pd:nightly
110+
~/.tiup/bin/tiup playground nightly --mode tikv-slim --kv 3 --without-monitor --kv.config config/tikv.toml --pd.config config/pd.toml &
111+
while :; do
112+
echo "waiting cluster to be ready"
113+
[[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break
114+
sleep 1
115+
done
109116
- name: integration test
110117
run: MULTI_REGION=1 make integration-test

config/tikv.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ region-split-keys = 7
44
batch-split-limit = 100
55

66
[raftstore]
7-
region-split-check-diff = "0KB"
7+
region-split-check-diff = "1B"
88
pd-heartbeat-tick-interval = "2s"
99
pd-store-heartbeat-tick-interval = "5s"
1010
split-region-check-tick-interval = "1s"

0 commit comments

Comments
 (0)