全部產品
Search
文件中心

Elastic High Performance Computing:DescribeAutoScaleConfig - 查詢自動調整配置資訊

更新時間:Dec 21, 2025

調用DescribeAutoScaleConfig查詢指定叢集的自動調整配置資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ehpc:DescribeAutoScaleConfig

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

ClusterId

string

叢集 ID。

ehpc-hz-FYUr32****

返回參數

名稱

類型

描述

樣本值

object

MaxNodesInCluster

integer

叢集最大計算節點數,叢集最多可以擴充的節點數量。

100

GrowTimeoutInMinutes

integer

擴容逾時時間,等待啟動節點的逾時時間。可能值:10~60

20

SpotStrategy

string

計算節點競價策略。可能值:

  • NoSpot:正常隨用隨付執行個體。

  • SpotWithPriceLimit:設定上限價格的搶佔式執行個體。

  • SpotAsPriceGo:系統自動出價,跟隨當前市場實際價格。

NoSpot

RequestId

string

請求 ID。

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

EnableAutoShrink

boolean

是否開啟自動縮容。

true

ClusterType

string

叢集的調度器類型。可能值:

  • pbs

  • slurm

  • opengridscheduler

  • deadline

slurm

EnableAutoGrow

boolean

是否開啟自動擴容。

true

ExcludeNodes

string

不使用自動調整的節點列表。

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

GrowIntervalInMinutes

integer

擴容時間間隔,每輪計算節點擴容的時間間隔。可能值:2~10

10

ShrinkIntervalInMinutes

integer

縮容時間間隔,每輪計算節點收縮的時間間隔。可能值:2~10

2

SpotPriceLimit

string

執行個體的每小時最高價格。支援最多 3 位小數,參數 SpotStrategy 取值為 SpotWithPriceLimit 時生效。

0.062

ShrinkIdleTimes

integer

節點連續空閑次數,資源收縮檢查時,一個節點連續處於閒置次數。可能值:2~5

3

ExtraNodesGrowRatio

integer

額外節點百分比。可能值:0~100

0

GrowRatio

integer

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

1

Uid

string

使用者識別碼。

testu****

ClusterId

string

叢集 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

錯誤碼

錯誤資訊

描述

400 InvalidParams The specified parameter %s is invalid. 指定的參數 %s 無效。
500 UnknownError An unknown error occurred. 未知錯誤
403 InvalidOpt The specified operation is invalid. Please try again later. If the problem still exists, submit a ticket.
404 ClusterNotFound The specified cluster does not exist. 指定的叢集不存在,請您檢查該參數是否正確。
503 ServiceUnavailable The request has failed due to a temporary failure of the server 請求失敗,服務暫時不可用
406 DbError A database service error occurred. 資料庫請求失敗

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情