You can manually release pay-as-you-go clusters based on your business requirements. The pay-as-you-go clusters are charged on an hourly basis. This topic describes how to manually release PolarDB for MySQL clusters.

Considerations

  • You cannot manually release subscription clusters. Subscription clusters are automatically released when they expire.
  • You can manually release the cluster whose Status is only Running.
  • You can use this feature to release clusters. If this feature is used, all the nodes of the clusters are released. For more information about how to release a single read-only node, see Add or remove read-only nodes.

Procedure

  1. Log on to the PolarDB console.
  2. On the top of the page, select the region where the target cluster is located.
  3. On the Clusters page, find the cluster that you want to release and choose More > Release in the Actions column.
    Clusters
  4. In the Release Cluster dialog box, select a backup retention policy and click OK.
    Select a backup retention policy and release the cluster
    Retain backups Description
    Retain All Backups Permanently Retains all the backups for a cluster when you delete the cluster.
    Retain Last Automatic Backup Permanently Retains the last backup for a cluster when you delete the cluster.
    Delete All Backups Immediately Deletes all the backups for a cluster when you delete the cluster.
    Warning If you select this policy, the deleted clusters cannot be restored.
    Note
    • If you select the Retain All Backups Permanently or Retain Last Automatic Backup Permanently policy, the system runs an automatic backup task to retain all the data about a cluster when you delete the PolarDB cluster.
    • After you delete a cluster, level-1 backups are automatically transferred to level-2 backups. You can go to the Cluster Recycle page to view retained backups. For more information, see Cluster recycle bin.

Related API operations

API Description
DescribeDBClusters Queries PolarDB clusters.
DeleteDBCluster Deletes a specified PolarDB cluster.