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
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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cddc:ModifyDedicatedHostGroupAttribute | update | *All Resources * |
| none |
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
JSONformat
{
"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.
Change history
| Change time | Summary of changes | Operation |
|---|
