mirror of https://github.com/tikv/client-rust.git
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>
This commit is contained in:
parent
503047fc23
commit
d75e727ced
|
@ -105,6 +105,13 @@ jobs:
|
|||
- name: install tiup
|
||||
run: curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
|
||||
- name: start tiup playground
|
||||
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 &
|
||||
run: |
|
||||
~/.tiup/bin/tiup install tikv:nightly pd:nightly
|
||||
~/.tiup/bin/tiup playground nightly --mode tikv-slim --kv 3 --without-monitor --kv.config config/tikv.toml --pd.config config/pd.toml &
|
||||
while :; do
|
||||
echo "waiting cluster to be ready"
|
||||
[[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break
|
||||
sleep 1
|
||||
done
|
||||
- name: integration test
|
||||
run: MULTI_REGION=1 make integration-test
|
||||
|
|
|
@ -4,7 +4,7 @@ region-split-keys = 7
|
|||
batch-split-limit = 100
|
||||
|
||||
[raftstore]
|
||||
region-split-check-diff = "0KB"
|
||||
region-split-check-diff = "1B"
|
||||
pd-heartbeat-tick-interval = "2s"
|
||||
pd-store-heartbeat-tick-interval = "5s"
|
||||
split-region-check-tick-interval = "1s"
|
||||
|
|
Loading…
Reference in New Issue