Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions tests/integration_tests/_utils/start_tidb_cluster_nextgen
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ if [ -z "$OUT_DIR" ]; then
exit 1
fi

echo "Checking TiKV version information..."
tikv-server -V

# start minio
echo "Starting MinIO server..."
mkdir -p "$TEST_DATA_DIR/minio"
Expand Down Expand Up @@ -228,6 +231,9 @@ wal-sync-dir = "$TEST_DATA_DIR/wal-sync/upstream/tikv/raft-wal"
lightweight-backup = true
target-file-size = "512MB"
wal-chunk-target-file-size = "128MB"

[cdc]
enable = true
EOF

touch "$OUT_DIR/downstream-tikv.toml"
Expand All @@ -252,12 +258,14 @@ wal-sync-dir = "$TEST_DATA_DIR/wal-sync/downstream/tikv/raft-wal"
lightweight-backup = true
target-file-size = "512MB"
wal-chunk-target-file-size = "128MB"

[cdc]
enable = true
EOF

echo "Starting upstream TiKV..."
mkdir -p "$TEST_DATA_DIR/upstream"
mkdir -p "$OUT_DIR/log/upstream/tikv"
tikv-server --version
for idx in $(seq 1 3); do
host="UP_TIKV_HOST_$idx"
port="UP_TIKV_PORT_$idx"
Expand All @@ -277,7 +285,6 @@ done
echo "Starting downstream TiKV..."
mkdir -p "$TEST_DATA_DIR/downstream"
mkdir -p "$OUT_DIR/log/downstream/tikv"
tikv-server --version
tikv-server \
--pd "${DOWN_PD_HOST}:${DOWN_PD_PORT}" \
-A "${DOWN_TIKV_HOST}:${DOWN_TIKV_PORT}" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ else
echo "Bucket tls-cse-test already exists, skipping creation"
fi

echo "Checking TiKV version information..."
tikv-server -V

# Tries to limit the max number of open files under the system limit
cat - >"$OUT_DIR/tikv-config-tls.toml" <<EOF
[storage]
Expand All @@ -92,6 +95,9 @@ wal-chunk-target-file-size = "128MB"
ca-path = "$TLS_DIR/ca.pem"
cert-path = "$TLS_DIR/server.pem"
key-path = "$TLS_DIR/server-key.pem"

[cdc]
enable = true
EOF

cat >"$OUT_DIR/tikv-worker-tls.toml" <<EOF
Expand Down Expand Up @@ -176,7 +182,6 @@ cluster-ssl-key = "$TLS_DIR/server-key.pem"
EOF

echo "Starting TLS TiKV..."
tikv-server --version
# Uncomment to turn on grpc versbose log.
# GRPC_VERBOSITY=debug \
# GRPC_TRACE=server_channel,call_error,handshaker,tsi \
Expand Down
Loading