All Products
Search
Document Center

PolarDB:Manage a serverless cluster

Last Updated:Oct 19, 2023

After you create a serverless cluster, you can customize the configuration items of the serverless cluster. This topic describes how to manage a serverless cluster.

Set the scaling range of single-node PCUs

The billing and scaling of a serverless cluster are based on PCUs (approximately equal to 1 core and 2 GB of memory. Single-node PCUs are dynamically adjusted based on workloads within the scaling range of PCUs that you set.

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. Find the cluster and click the cluster ID.
  4. In the Database Nodes section of the Basic Information page, click Serverless.
    serverless
  5. In the Configure Serverless-related Parameters dialog box, set Minimum Resources for Single Node and Maximum Resources for Single Node.
    • Minimum Resources for Single Node: the minimum number of PCUs per node in the cluster. Valid values: 1 PCU to 31 PCUs.
    • Maximum Resources for Single Node: the maximum number of PCUs per node in the cluster. Valid values: 1 PCU to 32 PCUs.
  6. Click Next Step.

Set the scaling range of read-only nodes

The number of read-only nodes in a serverless cluster is are dynamically adjusted based on workloads within the scaling range of read-only nodes that you set.

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. Find the cluster and click the cluster ID.
  4. In the Database Nodes section of the Basic Information page, click Serverless.
    serverless
  5. In the Configure Serverless-related Parameters dialog box, set Minimum Number of Read-only Nodes and Maximum Number of Read-only Nodes.
    • Minimum Number of Read-only Nodes: the minimum number of read-only nodes that can be added. To ensure high availability of the serverless cluster, we recommend that you set the minimum number of read-only nodes to 1. Valid values: 0 to 7.
    • Maximum Number of Read-only Nodes: the maximum number of read-only nodes that can be added. Valid values: 0 to 7.
  6. Click Next Step.

Set automatic cluster suspension

You can enable or disable the automatic cluster suspension feature for a serverless cluster. After the feature is enabled, if the cluster has no connection within the specified Detection Period for No-activity Suspension, the cluster automatically enters the suspended state. If a connection is established to the cluster, the cluster immediately starts.
Note You can enable or disable the automatic cluster suspension feature for a serverless cluster with defined specifications.
  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. Find the cluster and click the cluster ID.
  4. In the Database Nodes section of the Basic Information page, click Serverless.
    serverless
  5. In the Configure Serverless-related Parameters dialog box, enable or disable Enable No-activity Suspension.
  6. Optional:If you enable Enable No-activity Suspension, you must set Detection Period for No-activity Suspension.
    Note The detection period must be within a range from 5 minutes to 24 hours.
  7. Click Next Step.

Manually start a cluster

After a serverless cluster that has the automatic cluster suspension feature automatically enters the suspended state, you must manually start the cluster if you want to immediately restore the cluster to the running state.

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
  3. On the Clusters page, find the cluster that is in the stopped state.
  4. In the Database Nodes section of the Basic Information page, click Start Cluster.
    Start Cluster
  5. In the Start Cluster message, click OK.