All Products
Search
Document Center

AnalyticDB:ModifyDBCluster

Last Updated:Nov 10, 2025

Changes the configurations of an AnalyticDB for MySQL Data Lakehouse Edition cluster.

Operation description

  • During a scaling event, you are not allowed to execute the SUBMIT JOB statement to submit asynchronous jobs. If your business requires asynchronous jobs, perform scaling during appropriate periods.
  • When you scale a cluster, data in the cluster is migrated for redistribution. The amount of time that is required to migrate data is proportional to the data volume. During a scaling event, the services provided by the cluster are not interrupted. When you downgrade cluster specifications, data migration may require up to dozens of hours to complete. Proceed with caution especially if your cluster contains a large amount of data.
  • If the cluster has a built-in dataset loaded, make sure that the cluster has reserved storage resources of at least 24 AnalyticDB compute units (ACUs). Otherwise, the built-in dataset cannot be used.
  • When the scaling process is about to end, transient connections may occur. We recommend that you scale your cluster during off-peak hours or make sure that your application is configured to automatically reconnect to your cluster.
  • You can change an AnalyticDB for MySQL cluster from Data Warehouse Edition to Data Lakehouse Edition, but not the other way around. For more information, see Change a cluster from Data Warehouse Edition to Data Lakehouse Edition.
  • For information about the endpoints of AnalyticDB for MySQL, see Endpoints .

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adb:ModifyDBClusterupdate
*DBClusterLakeVersion
acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster.

Note You can call the DescribeDBClusters operation to query the IDs of all AnalyticDB for MySQL Data Lakehouse Edition clusters within a region.
amv-bp1r053byu48p****
RegionIdstringNo

The region ID of the cluster.

Note You can call the DescribeRegions operation to query the most recent region list.
cn-hangzhou
StorageResourcestringNo

The reserved storage resources. Valid values: 0ACU to 2064ACU. The value must be in increments of 24ACU. Each ACU is approximately equal to 1 core and 4 GB memory.

Note This parameter must be specified with a unit.
24ACU
ComputeResourcestringNo

The reserved computing resources. Valid values: 0ACU to 4096ACU. The value must be in increments of 16ACU. Each ACU is approximately equal to 1 core and 4 GB memory.

Note This parameter must be specified with a unit.
16ACU
EnableDefaultResourcePoolbooleanNo

Specifies whether to allocate all reserved computing resources to the user_default resource group. Valid values:

  • true (default)
  • false
true

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

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

The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster.

amv-bp1r053byu48p****
OrderIdstring

The order ID.

2035629****

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400ACS.Cluster.InvalidWorkerStateThe state of the worker does not support this operation.This operation is not supported due to the current state of the storage node.
400ACS.Cluster.ElasticPlanJobsExistsOperation failed. Ongoing elastic plan jobs exist.Failed to perform this operation because a storage scaling plan job is running.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-09-18The Error code has changed. The request parameters of the API has changedView Change Details
2024-05-09The Error code has changed. The request parameters of the API has changedView Change Details
2023-07-27The Error code has changed. The request parameters of the API has changedView Change Details
2023-06-21The Error code has changed. The request parameters of the API has changedView Change Details
2023-05-09The Error code has changed. The request parameters of the API has changedView Change Details
2023-04-13The Error code has changedView Change Details