Is there a quick way to remove a TiDB cluster?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb集群有快速铲掉方法吗

| username: linnana

The test environment has already deployed a TiDB cluster. Now I want to remove the entire cluster and redeploy it. Is there a method for this? The tiup cluster clean command seems to only delete data.

| username: 裤衩儿飞上天 | Original post link

tiup cluster destroy cluster-name

| username: linnana | Original post link

Let me test it, can this command clean everything up?

| username: linnana | Original post link

The main reason is that the default value of the tidb_distsql_scan_concurrency parameter is 15, which means that each query will start 15 goroutines to scan data. If there are many concurrent queries, it will cause a large number of goroutines to be created, resulting in high CPU usage. You can try to reduce the value of this parameter to alleviate the problem.

| username: 裤衩儿飞上天 | Original post link

It will be completely cleaned up, proceed with caution~

| username: 裤衩儿飞上天 | Original post link

After entering the prompt text, it will be completely deleted…

| username: linnana | Original post link

Okay, operate in the experimental environment.

| username: zhanggame1 | Original post link

The previous command is very clean, nothing is left.

| username: linnana | Original post link

Verified OK

| username: linnana | Original post link

Thank you all very much~

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.