调整 AI 集群模型容量
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。实际请求会按实例归属地域路由。 |
cn-beijing |
| DBClusterId |
string |
是 |
PolarDB AI 3.0 逻辑实例 ID。 |
pm-2ze4x2mwo81knj08a |
| TargetCapacity |
integer |
是 |
目标总容量,抽象容量单位为 1000 等于一张 L20N 等效卡,必须为正整数。 |
12000 |
| DryRun |
boolean |
否 |
是否仅执行只读容量试算。 |
true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| CurrentCapacity |
integer |
实例当前实测容量,仅 DryRun=true 时返回。 |
8000 |
| DBClusterId |
string |
PolarDB AI 3.0 逻辑实例 ID。 |
pm-2ze4x2mwo81knj08a |
| DryRun |
boolean |
本次请求是否仅执行容量试算。 |
true |
| PoolHitCapacity |
integer |
大池中可免整形直接借用的容量,仅 DryRun=true 时返回。 |
3000 |
| PoolHitRatio |
number |
大池直接命中率,取值范围为 0 到 1,仅 DryRun=true 时返回。 |
0.75 |
| RequestId |
string |
Id of the request |
3AA6E0E4-1234-5678-90AB-1234567890AB |
| RequiredDelta |
integer |
目标容量相对当前容量的正向差值,仅 DryRun=true 时返回。 |
4000 |
| TargetCapacity |
integer |
目标总容量。 |
12000 |
示例
正常返回示例
JSON格式
{
"CurrentCapacity": 8000,
"DBClusterId": "pm-2ze4x2mwo81knj08a",
"DryRun": true,
"PoolHitCapacity": 3000,
"PoolHitRatio": 0.75,
"RequestId": "3AA6E0E4-1234-5678-90AB-1234567890AB",
"RequiredDelta": 4000,
"TargetCapacity": 12000
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 400 | InvalidParameters.Format | The specified parameters are invalid. | 参数不正确。 |
| 400 | InsufficientModelCapacity | The available model capacity is insufficient for the requested target capacity. | |
| 500 | InternalFailure | The request processing has failed due to an internal error. | |
| 403 | IncorrectDBInstanceType | The specified DB instance type is not supported. | |
| 403 | IncorrectDBInstanceState | The specified DB instance state is not supported. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | 当前的记录中不存在提供的 DBClusterId。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。