Modifies configurations such as the CPU overcommit ratio, memory usage, storage overcommit ratio, and resource allocation policy for a dedicated cluster.
Operation description
For more information, see Manage dedicated clusters.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID of the dedicated cluster. For more information, see Region IDs. | cn-hangzhou |
DedicatedHostGroupId | string | Yes | The dedicated cluster ID. Note
You can log on to the ApsaraDB for MyBase console and go to the Dedicated Clusters page to view the dedicated cluster ID.
| dhg-h5i4p331f509**** |
DedicatedHostGroupDesc | string | No | The name of the dedicated cluster. | mysql-cluster |
CpuAllocationRatio | integer | No | The CPU overcommit ratio of the dedicated cluster. Valid values: 100 to 300. Note
If you change the CPU overcommit ratio to 300%, the total CPU resources of all instances are three times the actual CPU resources. This maximizes the use of CPU resources.
| 300 |
MemAllocationRatio | integer | No | The maximum memory usage of each host in the dedicated cluster. Valid values: 0 to 100. | 100 |
DiskAllocationRatio | integer | No | The storage overcommit ratio of the dedicated cluster. Valid values: 100 to 200. | 200 |
AllocationPolicy | string | No | The policy that is used to allocate resources in the dedicated cluster. Valid values:
| Intensively |
HostReplacePolicy | string | No | The policy that is used to handle host failures. Valid values:
Note
You can select a policy based on your business requirements only for dedicated clusters that run MySQL. For dedicated clusters that run other database engines, the default value Auto is used.
| Auto |
OpenPermission | string | No | Specifies whether to grant the host OS permissions. Valid values:
Note
You can grant the host OS permissions based on your business requirements only when you create dedicated clusters that run MySQL, SQL Server, or PostgreSQL. For dedicated clusters that run other database engines, the default value 0 is used.
| 0 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22EEDAS"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidUserId.NotSupport | The userid have no permission. | - |
403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API does not support RAM. | The user is not authorized to operate on the specified resource. |
404 | InvalidDedicatedHostGroup.NotFound | The specified cluster does not exist. |
For a list of error codes, visit the Service error codes.