Accidental manual release of a cluster running key business can cause irreversible data loss. The cluster lock feature prevents accidental manual release of clusters.
Limitations
The cluster lock feature only blocks manual release. It does not prevent the system from automatically releasing clusters in these cases:
Your account has an overdue payment for more than eight days.
The cluster does not comply with the applicable security compliance policies.
Enable the cluster lock feature
Log on to the PolarDB console.
In the left-side navigation pane, click Clusters.
In the upper-left corner, select the region where your cluster is deployed.
Enable the cluster lock using one of the following methods:
Method 1: On the Clusters page, find the cluster and choose More > Add Cluster Lock in the Actions column.

Method 2: On the Clusters page, click the cluster ID. On the Overview page, click Enable next to Cluster Lock.

In the dialog box that appears, click OK.
Disable the cluster lock feature
Log on to the PolarDB console.
In the left-side navigation pane, click Clusters.
In the upper-left corner, select the region where your cluster is deployed.
Disable the cluster lock using one of the following methods:
Method 1: On the Clusters page, find the cluster and choose More > Release Cluster Lock in the Actions column.

Method 2: On the Clusters page, click the cluster ID. On the Overview page, click Disable next to Cluster Lock.

In the dialog box that appears, click OK.
View the cluster lock status
Log on to the PolarDB console.
In the left-side navigation pane, click Clusters.
In the upper-left corner, select the region where your cluster is deployed.
On the Clusters page, click the cluster name.
On the Overview page, check the Cluster Lock status.

Related API operations
| Operation | Description |
|---|---|
| ModifyDBClusterDeletion | Enables or disables the cluster lock feature |