すべてのプロダクト
Search
ドキュメントセンター

:Enable serverless for defined-specification clusters

最終更新日:Jun 22, 2026

This topic describes how to enable the serverless feature for an existing defined-specification cluster that uses the subscription or pay-as-you-go billing method.

Applicability

To enable the serverless feature for a defined-specification cluster, the cluster must meet the following requirements:

Precautions

When you enable the Serverless feature for a defined-specification cluster, the cluster will experience a transient disconnection for 15 to 30 seconds, and may be migrated to an idle host if the current host has high resource usage. Therefore, we recommend that you enable the Serverless feature during off-peak hours.

Architecture

image
  • データベースプロキシ

    • データベースプロキシには、固定仕様 (固定仕様クラスターのデフォルト) とサーバーレスの 2 つの部分があります。サーバーレス部分はワークロードに基づいて弾性的にスケーリングします。

    • デフォルトでは、スケーリングは 0.5 PCU 単位で行われます。スケーリングの増分は、現在の PCU 使用量に基づいて動的に調整されます。PCU 使用量が多いほど、スケーリングの増分は大きくなります。

  • コンピュートノード

    • プライマリノード (RW ノード) と読み取り専用ノード (RO ノード) には、固定仕様リソースとサーバーレスリソースが含まれます。固定仕様リソースはスケーリングせず、サーバーレスリソースはワークロードに基づいて弾性的にスケーリングします。

    • 読み取り専用ノードがスケールアウトされるとノードが追加され、スケールインされるとノードが削除されます。これにより、クラスター全体の PCU 数が変動します。

    • デフォルトでは、スケーリングは 0.5 PCU 単位で行われます。スケーリングの増分は、現在の PCU 使用量に基づいて動的に調整されます。PCU 使用量が多いほど、スケーリングの増分は大きくなります。

    • 単一ノードの弾性スケーリング範囲を PCU 単位で設定できます。システムはコンピュートノードの PCU を毎秒監視します。

  • ストレージ領域

    固定仕様クラスターのストレージが使用されます。

説明

固定仕様クラスターに対してサーバーレス機能を有効にすると、クラスターの最大接続数と最大 IOPS は、サーバーレス1 ノードあたりのリソースの上限 パラメーターの値に比例します。

Billing

The total cost of the serverless feature for a defined-specification cluster has two components: the cost of the defined-specification cluster and the cost of the serverless resources. For information about the cost of the defined-specification cluster, see . For information about the cost of serverless resources, see .

Procedure

  1. Log on to the PolarDB console. In the left-side navigation pane, click [クラスター]. Select the region where the cluster is deployed and click the cluster ID to go to the cluster details page.

  2. On the [基本情報] page, in the [データベースノード] section, click [Serverless の有効化].

  3. In the [Serverless の有効化] dialog box, configure the following parameters and click OK.

    • [1 ノードあたりのリソースの上限]: As shown in the Architecture section, this parameter specifies the upper limit of serverless resources for the existing nodes in the defined-specification cluster. This is the upper limit for vertical scaling. Valid values: 0 to 16 PCU.

    • [1 ノードあたりのリソースの下限]: As shown in the Architecture section, this parameter specifies the lower limit of serverless resources for the existing nodes in the defined-specification cluster. This is the lower limit for vertical scaling. Valid values: 0 to 16 PCU. The value must be less than or equal to the value of Maximum Resources for Single Node.

    説明
    • This value excludes the existing defined-specification resources in the cluster. After you set these parameters, the vertical scaling range for the existing node resources is: Defined specification + Configured minimum to Defined specification + Configured maximum.

    • The vertical scaling range for newly added serverless read-only nodes is 1 to 32 PCU by default. This range is not configurable.

    • Example: If you set [1 ノードあたりのリソースの下限] to 2 PCU and [1 ノードあたりのリソースの上限] to 8 PCU for an existing node with a base Defined specification, its total capacity will scale between Defined specification + 2 PCU and Defined specification + 8 PCU.

    • [読み取り専用ノード数の上限]: The maximum number of additional serverless read-only nodes that the cluster can have. Valid values: 0 to 15.

    • [読み取り専用ノード数の下限]: The minimum number of additional serverless read-only nodes that the cluster must have. Valid values: 0 to 15. This value cannot be greater than the value of Maximum Read-only Nodes.

    説明
    • This value excludes the number of existing read-only nodes in the cluster.

    • A cluster supports a maximum of 15 read-only nodes. Therefore, the total number of read-only nodes (both existing and newly added) cannot exceed 15.

    • Example: If you set [読み取り専用ノード数の下限] to 1 and [読み取り専用ノード数の上限] to 2, the cluster immediately adds one serverless read-only node. Based on workload, it can add a second one, for a maximum of two additional serverless read-only nodes.

Related documents

Related APIs

API

Description

EnableDBClusterServerless

Enables the serverless feature for a defined-specification cluster.

DescribeDBClusterServerlessConf

Queries the serverless configuration of a cluster.