調用DescribeAutoScaleConfig查詢指定叢集的自動調整配置資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ehpc:DescribeAutoScaleConfig |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
叢集 ID。 |
ehpc-hz-FYUr32**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| MaxNodesInCluster |
integer |
叢集最大計算節點數,叢集最多可以擴充的節點數量。 |
100 |
| GrowTimeoutInMinutes |
integer |
擴容逾時時間,等待啟動節點的逾時時間。可能值:10~60 |
20 |
| SpotStrategy |
string |
計算節點競價策略。可能值:
|
NoSpot |
| RequestId |
string |
請求 ID。 |
04F0F334-1335-436C-A1D7-6C044FE73 |
| EnableAutoShrink |
boolean |
是否開啟自動縮容。 |
true |
| ClusterType |
string |
叢集的調度器類型。可能值:
|
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. | 資料庫請求失敗 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。