Consulta as configurações do recurso de auto scaling para uma instância.
Descrição da operação
Antes de chamar esta operação, observe os seguintes itens:
-
Se você usar um SDK da Alibaba Cloud ou um SDK do Database Autonomy Service (DAS) para chamar esta operação, recomendamos que use a versão mais recente do SDK.
-
Se você usar um SDK para chamar operações do DAS, deverá definir o ID da região como cn-shanghai.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
hdm:DescribeAutoScalingConfig |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| InstanceId |
string |
Sim |
O ID da instância. |
pc-2ze1prap1k46r**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
The response parameters. |
||
| Code |
string |
O código de status HTTP retornado. |
200 |
| Message |
string |
A mensagem retornada. Nota
Se a solicitação foi bem-sucedida, Successful é retornado. Se a solicitação falhou, uma mensagem de erro, como um código de erro, é retornada. |
Successful |
| RequestId |
string |
O ID da solicitação. |
B6D17591-B48B-4D31-9CD6-9B9796B2**** |
| Success |
string |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
| Data |
object |
As configurações do recurso de auto scaling para instâncias. |
|
| Spec |
object |
As configurações do recurso de auto scaling para especificações. |
|
| Upgrade |
boolean |
Indicates whether the automatic specification scale-up feature is enabled. Valid values:
|
true |
| CpuUsageUpperThreshold |
integer |
The average CPU utilization threshold that triggers automatic specification scale-up. Unit: %. |
70 |
| MemUsageUpperThreshold |
integer |
The average memory usage threshold that triggers automatic specification scale-up. Unit: %. |
70 |
| MaxSpec |
string |
The maximum specifications to which the cluster can be scaled up. For more information about the specifications of each type of supported database instances, see the following topics:
|
polar.mysql.x8.12xlarge |
| MaxReadOnlyNodes |
integer |
The maximum number of read-only nodes of the instance. |
10 |
| ObservationWindowSize |
string |
The observation window. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:
Nota
A value of 5m indicates 5 minutes. |
5m |
| CoolDownTime |
string |
The quiescent period. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:
Nota
A value of 5m indicates 5 minutes. |
5m |
| Downgrade |
boolean |
Indicates whether the automatic specification scale-down feature is enabled. Valid values:
|
true |
| Storage |
object |
As configurações do recurso de expansão automática de armazenamento. |
|
| Upgrade |
boolean |
Indicates whether the automatic storage expansion feature is enabled. Valid values:
|
true |
| DiskUsageUpperThreshold |
integer |
The average storage usage threshold that triggers automatic storage expansion. Unit: %. |
70 |
| MaxStorage |
integer |
The maximum storage size. Unit: GB. |
32000 |
| Resource |
object |
As configurações do recurso de auto scaling para recursos locais. |
|
| Enable |
boolean |
Indicates whether the auto scaling feature is enabled for local resources. Valid values:
|
true |
| CpuUsageUpperThreshold |
integer |
The average CPU utilization threshold that triggers automatic scale-out of local resources. Unit: %. |
70 |
| CpuStep |
integer |
The scale-out step size of CPU. |
2 |
| UpgradeObservationWindowSize |
string |
The observation window of the automatic scale-out feature for local resources. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:
Nota
A value of 5m indicates 5 minutes. |
5m |
| DowngradeObservationWindowSize |
string |
The observation window of the automatic scale-in feature for local resources. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:
Nota
A value of 5m indicates 5 minutes. |
5m |
| Shard |
object |
As configurações do recurso de auto scaling para shards. |
|
| Upgrade |
boolean |
Indicates whether the feature of automatically adding shards is enabled. Valid values:
|
true |
| MemUsageUpperThreshold |
integer |
The average memory usage threshold that triggers automatic adding of shards. Unit: %. |
70 |
| MaxShards |
integer |
The maximum number of shards in the instance. |
16 |
| UpgradeObservationWindowSize |
string |
The observation window of the feature of automatically adding shards. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:
Nota
A value of 5m indicates 5 minutes. |
5m |
| Downgrade |
boolean |
Indicates whether the feature of automatically removing shards is enabled. Valid values:
|
true |
| MemUsageLowerThreshold |
integer |
The average memory usage threshold that triggers automatic removal of shards. Unit: %. |
30 |
| MinShards |
integer |
The minimum number of shards in the instance. |
4 |
| DowngradeObservationWindowSize |
string |
The observation window of the feature of automatically removing shards. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:
Nota
A value of 1d indicates one day. |
1d |
| Bandwidth |
object |
As configurações do recurso de ajuste automático de largura de banda. |
|
| Upgrade |
boolean |
Indicates whether the automatic bandwidth adjustment feature is enabled. Valid values:
|
true |
| BandwidthUsageUpperThreshold |
integer |
The average bandwidth usage threshold that triggers automatic bandwidth adjustment. Unit: %. |
70 |
| ObservationWindowSize |
string |
The observation window of the automatic bandwidth adjustment feature. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:
Nota
A value of 5m indicates 5 minutes. |
5m |
| Downgrade |
boolean |
Indicates whether the automatic bandwidth downgrade feature is enabled. Valid values:
|
true |
| BandwidthUsageLowerThreshold |
integer |
The average bandwidth usage threshold that triggers automatic bandwidth downgrade. Unit: %. |
30 |
Exemplos
Resposta de sucesso
JSON formato
{
"Code": "200",
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true",
"Data": {
"Spec": {
"Upgrade": true,
"CpuUsageUpperThreshold": 70,
"MemUsageUpperThreshold": 70,
"MaxSpec": "polar.mysql.x8.12xlarge",
"MaxReadOnlyNodes": 10,
"ObservationWindowSize": "5m",
"CoolDownTime": "5m",
"Downgrade": true
},
"Storage": {
"Upgrade": true,
"DiskUsageUpperThreshold": 70,
"MaxStorage": 32000
},
"Resource": {
"Enable": true,
"CpuUsageUpperThreshold": 70,
"CpuStep": 2,
"UpgradeObservationWindowSize": "5m",
"DowngradeObservationWindowSize": "5m"
},
"Shard": {
"Upgrade": true,
"MemUsageUpperThreshold": 70,
"MaxShards": 16,
"UpgradeObservationWindowSize": "5m",
"Downgrade": true,
"MemUsageLowerThreshold": 30,
"MinShards": 4,
"DowngradeObservationWindowSize": "1d"
},
"Bandwidth": {
"Upgrade": true,
"BandwidthUsageUpperThreshold": 70,
"ObservationWindowSize": "5m",
"Downgrade": true,
"BandwidthUsageLowerThreshold": 30
}
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | |
| 403 | NoPermission | You are not authorized to do this action. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.