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
|
|
説明 固定仕様クラスターに対してサーバーレス機能を有効にすると、クラスターの最大接続数と最大 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
-
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.
-
On the [基本情報] page, in the [データベースノード] section, click [Serverless の有効化].
-
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 betweenDefined specification + 2 PCUandDefined 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 |
|
Enables the serverless feature for a defined-specification cluster. |
|
|
Queries the serverless configuration of a cluster. |