- Put the following binaries into
bin/
directory
- libtiflash_proxy.so
- tiflash
- flash_cluster_manager
- Build tiflash image
docker build -t hub.pingcap.net/tiflash/tiflash:{your-tag} .
docker push hub.pingcap.net/tiflash/tiflash:{your-tag}
-
use
tidb-operator
to deploy tidb cluster -
kubectl apply -f tiflash.yaml -n tiflash-test
-
kubectl port-forward -n tiflash-test svc/tiflash-test-cluster-tidb 4000:4000 &
-
mysql -h 127.0.0.1 -P 4000 -u root -D test
-
kubectl create namespace tiflash-chaos-testing
-
kubectl apply -f tikv-failure.yaml -n tiflash-chaos-testing
-
kubectl apply -f tiflash-failure.yaml -n tiflash-chaos-testing
notes:
- check pd,tikv,tidb version
- remember to modify pd and tikv config