文档

DescribeAutoScaleConfig - 查询自动伸缩配置信息

调用DescribeAutoScaleConfig查询指定集群的自动伸缩配置信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
ehpc:DescribeAutoScaleConfigRead
  • 全部资源
    *

请求参数

名称类型必填描述示例值
ClusterIdstring

集群 ID。

ehpc-hz-FYUr32****

返回参数

名称类型描述示例值
object
MaxNodesInClusterinteger

集群最大计算节点数,集群最多可以扩展的节点数量。

100
GrowTimeoutInMinutesinteger

扩容超时时间,等待启动节点的超时时间。可能值:10~60

20
SpotStrategystring

计算节点竞价策略。可能值:

  • NoSpot:正常按量付费实例。
  • SpotWithPriceLimit:设置上限价格的抢占式实例。
  • SpotAsPriceGo:系统自动出价,跟随当前市场实际价格。
NoSpot
RequestIdstring

请求 ID。

04F0F334-1335-436C-A1D7-6C044FE73
EnableAutoShrinkboolean

是否开启自动缩容。

true
ClusterTypestring

集群的调度器类型。可能值:

  • pbs
  • slurm
  • opengridscheduler
  • deadline
slurm
EnableAutoGrowboolean

是否开启自动扩容。

true
ExcludeNodesstring

不使用自动伸缩的节点列表。

i-bp19lgqwxb4206t5****,i-bp1g4hvzs9pywrhb****
GrowIntervalInMinutesinteger

扩容时间间隔,每轮计算节点扩容的时间间隔。可能值:2~10

10
ShrinkIntervalInMinutesinteger

缩容时间间隔,每轮计算节点收缩的时间间隔。可能值:2~10

2
SpotPriceLimitstring

实例的每小时最高价格。支持最多 3 位小数,参数 SpotStrategy 取值为 SpotWithPriceLimit 时生效。

0.062
ShrinkIdleTimesinteger

节点连续空闲次数,资源收缩检查时,一个节点连续处于空闲的次数。可能值:2~5

3
ExtraNodesGrowRatiointeger

额外节点百分比。可能值:0~100

0
GrowRatiointeger

扩容比例。可能值:1~100

1
Uidstring

用户 ID。

testu****
ClusterIdstring

集群 ID。

ehpc-hz-FYUr32****

示例

正常返回示例

JSON格式

{
  "MaxNodesInCluster": 100,
  "GrowTimeoutInMinutes": 20,
  "SpotStrategy": "NoSpot",
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73",
  "EnableAutoShrink": true,
  "ClusterType": "slurm",
  "EnableAutoGrow": true,
  "ExcludeNodes": "i-bp19lgqwxb4206t5****,i-bp1g4hvzs9pywrhb****",
  "GrowIntervalInMinutes": 10,
  "ShrinkIntervalInMinutes": 2,
  "SpotPriceLimit": "0.062",
  "ShrinkIdleTimes": 3,
  "ExtraNodesGrowRatio": 0,
  "GrowRatio": 1,
  "Uid": "testu****",
  "ClusterId": "ehpc-hz-FYUr32****"
}

错误码

HTTP status code错误码错误信息描述
400InvalidParamsThe specified parameter %s is invalid.无效的参数:%s
403InvalidOptThe specified operation is invalid. Please try again later. If the problem still exists, submit a ticket.-
404ClusterNotFoundThe specified cluster does not exist.指定的集群不存在,请您检查该参数是否正确。
406DbErrorA database service error occurred.数据库请求失败
500UnknownErrorAn unknown error occurred.未知错误
503ServiceUnavailableThe request has failed due to a temporary failure of the server请求失败,服务暂时不可用

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈