Closed tennix closed 5 years ago
can you add the instruction? i am running load tests which require frequent clean up of old test data. is "truncate table" good enough?
Currently, you can follow the instructions here https://github.com/pingcap/tidb-operator/blob/master/docs/operation-guide.md#destroy-tidb-cluster I'll add these instructions to GKE tutorial later.
What did you mean by load tests
? Is it functionality test or bench test? For bench test, you'd better create a new cluster each time because dropping database would require compaction in the background which impacts the performance. While for functionality test, it's ok to do so.
Added in #213
Deleting Kubernetes cluster would not delete the persistent disk volumes used by the cluster on GKE. So an extra step is needed in GKE tutorial to delete TiDB cluster cleanly before deleting Kubernetes cluster.