ModifyDBCluster

Updated at:
Copy as MD

Upgrades or downgrades the specifications of a Data Lakehouse Edition cluster.

Operation description

Precautions

  • During scaling, the submit job command for submitting asynchronous tasks is disabled. If your business relies on this feature, execute the scaling operation during off-peak hours based on your business requirements.

  • Scaling operations redistribute and migrate data. The migration duration is proportional to the data volume, and services are not interrupted during scaling. When you scale down a cluster from large specifications to small specifications, data migration typically takes several hours or even dozens of hours. Exercise caution when scaling down clusters with large data volumes.

  • If the cluster has built-in datasets loaded, ensure that the cluster has at least 24 ACUs of reserved storage resources when you scale down the cluster. Otherwise, the built-in datasets become unavailable.

  • Transient connections may occur when the scaling operation is about to complete. Execute scaling operations during off-peak hours or ensure that your applications have an automatic reconnection mechanism.

  • You cannot change a Data Lakehouse Edition cluster to a Data Warehouse Edition cluster. You can change a Data Warehouse Edition cluster to a Data Lakehouse Edition cluster. For more information, see Change a Data Warehouse Edition cluster to a Data Lakehouse Edition cluster.

  • For the endpoint of the current service, see Endpoints.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

adb:ModifyDBCluster

update

*DBClusterLakeVersion

acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}

None None

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

The ID of the Data Lakehouse Edition cluster.

Note

You can call the DescribeDBClusters operation to query the ID of the Data Lakehouse Edition cluster.

amv-bp1r053byu48p****

RegionId

string

No

The region ID.

Note

You can call the DescribeRegions operation to query the region ID of the specified Data Lakehouse Edition cluster.

cn-hangzhou

StorageResource

string

No

The reserved storage resources. Valid values: 0 ACU to 2064 ACU. Step: 24. 1 ACU is approximately equal to 1 core and 4 GB of memory.

Note

Include the unit when you specify this parameter.

24ACU

ComputeResource

string

No

The reserved compute resources. Valid values: 0 ACU to 4096 ACU. Step: 16. 1 ACU is approximately equal to 1 core and 4 GB of memory.

Note

Include the unit when you specify this parameter.

16ACU

EnableDefaultResourcePool

boolean

No

Specifies whether to allocate all reserved compute resources to the default resource group (user_default). Valid values:

  • true (default): Yes.

  • false: No.

true

ProductForm

string

No

The product form. Valid values:

  • IntegrationForm: Integration form.

  • LegacyForm: Data Lakehouse Edition.

LegacyForm

ReservedNodeSize

string

No

The node specifications for reserved storage resources. Valid values: 8 ACU, 12 ACU, and 16 ACU.

Note

Include the unit when you specify this parameter. Specify this parameter only when ProductForm is set to IntegrationForm.

8ACU

ReservedNodeCount

integer

No

The number of reserved nodes.

  • For Enterprise Edition, the default value is 3 and the step is 3.

  • For Basic Edition, the default value is 1.

Note

Specify this parameter only when ProductForm is set to IntegrationForm.

3

AINodeSpec

string

No

The AI node specifications.

ADB.MLPlus.4

AINodeNumber

integer

No

The number of AI nodes.

3

ProductVersion

string

No

The target product version. When you switch from LegacyForm to IntegrationForm Enterprise Edition in-place, set this parameter to enterprise_version and specify ProductForm, ReservedNodeSize, and ReservedNodeCount at the same time.

enterprise_version

Response elements

Element

Type

Description

Example

object

DBClusterId

string

The ID of the Data Lakehouse Edition cluster.

amv-bp1r053byu48p****

OrderId

string

The order ID.

2035629****

RequestId

string

The request ID.

0D6BF3E2-41D8-57F6-9A62-A13A70377952

Examples

Success response

JSON format

{
  "DBClusterId": "amv-bp1r053byu48p****",
  "OrderId": "2035629****",
  "RequestId": "0D6BF3E2-41D8-57F6-9A62-A13A70377952"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ACS.Cluster.InvalidWorkerState The state of the worker does not support this operation. This operation is not supported due to the current state of the storage node.
400 ACS.Cluster.ElasticPlanJobsExists Operation failed. Ongoing elastic plan jobs exist. Failed to perform this operation because a storage scaling plan job is running.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.