Skip to content

Commit 81268da

Browse files
committed
cluster: add integration tests for tiproxy
Signed-off-by: xhe <[email protected]>
1 parent 0972f87 commit 81268da

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

tests/tiup-cluster/script/scale_core.sh

+9
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ function scale_core() {
9999
# after all components on the node were scale-ined, the SSH public is automatically deleted
100100
! ssh -o "StrictHostKeyChecking=no "-o "PasswordAuthentication=no" -i ~/.tiup/storage/cluster/$name/ssh/id_rsa tidb@n2 "ls"
101101

102+
echo "start scale out tiproxy"
103+
topo=./topo/full_scale_in_tiproxy.yaml
104+
tiup-cluster $client --yes scale-out $name $topo
105+
wait_instance_num_reach $name $total_sub_one $native_ssh
106+
107+
echo "start scale in tiproxy"
108+
tiup-cluster $client --yes scale-in $name -N n2:6000
109+
wait_instance_num_reach $name $total_sub_one $native_ssh
110+
102111
echo "start scale out tidb"
103112
topo=./topo/full_scale_in_tidb_2nd.yaml
104113
tiup-cluster $client --yes scale-out $name $topo

tests/tiup-cluster/topo/full.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ tiflash_servers:
3636
data_dir: "data1,/data/tiflash-data"
3737
# - host: n4
3838
# - host: n5
39+
#
40+
tiproxy_servers:
41+
- host: n1
3942

4043
pump_servers:
4144
- host: n3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tiproxy_servers:
2+
- host: n2

tests/tiup-cluster/topo/full_tls.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ pump_servers:
3535
- host: n4
3636
- host: n5
3737

38+
tiproxy_servers:
39+
- host: n1
40+
3841
drainer_servers:
3942
- host: n1
4043
data_dir: /home/tidb/data/drainer-8249/data

0 commit comments

Comments
 (0)