pingcap / tidb-operator

TiDB operator creates and manages TiDB clusters running in Kubernetes.
https://docs.pingcap.com/tidb-in-kubernetes/
Apache License 2.0
1.22k stars 493 forks source link

GKE tutorial: delete tidb cluster and pv before delete gke cluster #205

Closed tennix closed 5 years ago

tennix commented 5 years ago

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.

tkalanick commented 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?

tennix commented 5 years ago

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.

tennix commented 5 years ago

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.

tennix commented 5 years ago

Added in #213