Pause or Resume a TiDB Cloud Dedicated Cluster
You can easily pause and resume a TiDB Cloud Dedicated cluster that is not in operation at all times in TiDB Cloud.
The pause does not affect your data stored in the cluster but only stops the collection of monitoring information and the consumption of computing resources. After the pause, you can resume your cluster at any time.
Comparing with backup and restore, pausing and resuming a cluster takes less time and keeps your cluster information (including cluster version, cluster configurations, and TiDB user accounts).
Limitations
- You can pause your cluster only when it is in the Available status. If your cluster is in other status such as Modifying, you must wait for the current operation to be completed before pausing the cluster.
- You cannot pause your cluster when a data import task is going on. You can either wait for the import task to be completed or cancel the import task.
- You cannot pause your cluster when a backup job is going on. You can either wait for the current backup job to be completed or delete the running backup job.
- You cannot pause your cluster if it has any changefeeds. You need to delete the existing changefeeds before pausing the cluster.
Pause a TiDB cluster
When a cluster is paused, note the following:
TiDB Cloud stops collecting monitoring information of the cluster.
You cannot read data from or write data to the cluster.
You cannot import or back up data.
Only the following costs will be charged:
- Node Storage Cost
- Data Backup Cost
TiDB Cloud stops automatic backup of the cluster.
To pause a cluster, take the following steps:
In the TiDB Cloud console, navigate to the Clusters page of your project.
In the row of the cluster that you want to pause, click ....
Click Pause in the drop-down menu.
The Pause your cluster dialog is displayed.
In the dialog, click Pause to confirm your choice.
After you click Pause, the cluster will enter the Pausing status first. Once the pause operation is done, the cluster will transition to the Paused status.
You can also pause a cluster using TiDB Cloud API. Currently, TiDB Cloud API is still in beta. For more information, see TiDB Cloud API Documentation.
Resume a TiDB cluster
After a paused cluster is resumed, note the following:
- TiDB Cloud resumes collecting the monitoring information of the cluster, and you can read data from or write data to the cluster.
- TiDB Cloud resumes charging both compute and storage costs.
- TiDB Cloud resumes automatic backup of the cluster.
To resume a paused cluster, take the following steps:
In the TiDB Cloud console, navigate to the Clusters page of your project.
For the cluster that you want to resume, click Resume. The Resume your cluster dialog is displayed.
In the dialog, click Resume to confirm your choice. The cluster status becomes Resuming.
Depending on your cluster size, it can take several minutes to resume the cluster. After the cluster is resumed, the cluster status changes from Resuming to Available.
You can also resume a cluster using TiDB Cloud API. Currently, TiDB Cloud API is still in beta. For more information, see TiDB Cloud API Documentation.