獲取GPU叢集告警列表。
介面說明
為目標 ACK 叢集安裝元件後:
首先,初次納管叢集,會為叢集目前包含的所有 ECS 安裝元件(如果叢集節點超過 50 台,第一批次只會安裝 50 台);
其次,作業系統主控台會週期性地檢查被納管叢集的擴縮容情況,一旦有新的 ECS 被新增至叢集中,作業系統主控台會為其自動安裝元件無需使用者干預。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
GET /api/v1/aiTopology/topology/listAlarmRecord HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| alarmTime |
string |
否 |
指定時刻查詢,如:「2025-08-22 18:16:25」 指定時間範圍查詢為「start,end」格式,如: 「2025-08-22 18:16:25,2025-08-23 18:16:25」。 |
"2025-08-22 18:16:25,2025-08-23 18:16:25" |
| alarmCluster |
string |
否 |
指定叢集查詢,如:「cluster1」,如查詢多個叢集用逗號分隔:「cluster1,cluster2,cluster3」。 |
"cluster1" |
| alarmTask |
string |
否 |
指定任務查詢,如:「task1」,如 ch 查詢多個任務用逗號分隔:「task1,task2,task3」。 |
task id |
| current |
integer |
是 |
分頁參數,目前頁。 |
1 |
| pageSize |
integer |
是 |
分頁參數,頁大小。 |
10 |
| status |
string |
否 |
根據任務狀態過濾,如 blocking、running、exited、restart。 |
Running |
| alarmType |
string |
否 |
過濾指定異常類型,如視訊記憶體存取越界、任務 HANG。 |
cuda error |
| alarmExtInfo |
string |
否 |
按照 instance id、容器過濾異常。 |
instance id |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| code |
string |
code 為'Success'或'Sysom.ServerError'。 |
Success or Sysom.ServerError |
| data |
array<object> |
告警資料列表。 |
|
|
object |
資料節點。 |
||
| alarmCluster |
string |
告警叢集。 |
cluster1 |
| alarmExtInfo |
any |
告警其他資訊。 |
{ error_node_gpu, error_pod, task_pod_list, error_type, kernel, } |
| alarmId |
string |
唯一告警 ID。 |
746d13f8-9662-4441-b76b-a8ed8d485195 |
| alarmLog |
string |
告警事件日誌。 |
cuda OOM:xxxxx |
| alarmTask |
string |
發生異常的任務 ID。 |
task job id |
| alarmTime |
string |
告警時間日期。 |
2025-08-22 18:16:25 |
| alarmTopology |
any |
拓撲快照。 |
topology data,e.g. "alarmTopology": { "nodes": [ { "gpu_list": [ { "values": { "Basic": [ { "value": "1", "key": "Gpu Number\n" } ], "Metric": [ { "value": "50", "key": "gpu_util(%)\n" } ], "Exception": [ { "value": "NCCL HANG", "key": "error0" } ] }, "name": "GPU1", "style": { "fill": "#e94242\n", "opacity": "0.1" }, "id": "6cc37fbc" } ], "values": { "Basic": [ { "value": "i-xxxxxx", "key": "instance" } ], "Metric": [ { "value": "value of metrics 1", "key": "name of metric 1" } ], "Exception": [ { "value": "NCCL HANG", "key": "error0" } ] }, "name": "i-xxxxxx\n", "style": { "fillOpacity": "0.5", "fill": "#e94242\n" }, "id": "975fbcb0" } ], "edges": [ { "src_id": "00534a88", "values": { "Basic": [ { "value": "v2.22.3\n", "key": "NCCL Version\n" } ], "Metric": [ { "value": "10000", "key": "Recv Msg Count" } ], "Exception": [ { "value": "NCCL HANG", "key": "error0" } ] }, "dst_id": "260525e9", "style": { "opacity": "0.1", "lineWidth": "1", "selectedStyle": "\"{\\\"opacity\\\": 1, \\\"lineWidth\\\": 1}\"\n", "stroke": "#e94242" }, "type": "GPU" } ] }, |
| alarmType |
string |
告警類型。 |
cuda OOM |
| status |
string |
任務狀態。 |
running、blocking、restart、exited、failed |
| uid |
string |
雲端帳戶 uuid。 |
1234123412352311 |
| message |
string |
code 不為'Success'時,message 為出錯資訊。 |
server error |
| requestId |
string |
Id of the request |
real request ID |
| total |
string |
傳回記錄數量。 |
10 |
樣本
正常返回樣本
JSON格式
{
"code": "Success or Sysom.ServerError",
"data": [
{
"alarmCluster": "cluster1",
"alarmExtInfo": "{\nerror_node_gpu, \nerror_pod, \ntask_pod_list, \nerror_type, \nkernel, \n}",
"alarmId": "746d13f8-9662-4441-b76b-a8ed8d485195",
"alarmLog": "cuda OOM:xxxxx",
"alarmTask": "task job id",
"alarmTime": "2025-08-22 18:16:25",
"alarmTopology": "topology data,e.g.\n \"alarmTopology\": {\n \"nodes\": [\n {\n \"gpu_list\": [\n {\n \"values\": {\n \"Basic\": [\n {\n \"value\": \"1\",\n \"key\": \"Gpu Number\\n\"\n }\n ],\n \"Metric\": [\n {\n \"value\": \"50\",\n \"key\": \"gpu_util(%)\\n\"\n }\n ],\n \"Exception\": [\n {\n \"value\": \"NCCL HANG\",\n \"key\": \"error0\"\n }\n ]\n },\n \"name\": \"GPU1\",\n \"style\": {\n \"fill\": \"#e94242\\n\",\n \"opacity\": \"0.1\"\n },\n \"id\": \"6cc37fbc\"\n }\n ],\n \"values\": {\n \"Basic\": [\n {\n \"value\": \"i-xxxxxx\",\n \"key\": \"instance\"\n }\n ],\n \"Metric\": [\n {\n \"value\": \"value of metrics 1\",\n \"key\": \"name of metric 1\"\n }\n ],\n \"Exception\": [\n {\n \"value\": \"NCCL HANG\",\n \"key\": \"error0\"\n }\n ]\n },\n \"name\": \"i-xxxxxx\\n\",\n \"style\": {\n \"fillOpacity\": \"0.5\",\n \"fill\": \"#e94242\\n\"\n },\n \"id\": \"975fbcb0\"\n }\n ],\n \"edges\": [\n {\n \"src_id\": \"00534a88\",\n \"values\": {\n \"Basic\": [\n {\n \"value\": \"v2.22.3\\n\",\n \"key\": \"NCCL Version\\n\"\n }\n ],\n \"Metric\": [\n {\n \"value\": \"10000\",\n \"key\": \"Recv Msg Count\"\n }\n ],\n \"Exception\": [\n {\n \"value\": \"NCCL HANG\",\n \"key\": \"error0\"\n }\n ]\n },\n \"dst_id\": \"260525e9\",\n \"style\": {\n \"opacity\": \"0.1\",\n \"lineWidth\": \"1\",\n \"selectedStyle\": \"\\\"{\\\\\\\"opacity\\\\\\\": 1, \\\\\\\"lineWidth\\\\\\\": 1}\\\"\\n\",\n \"stroke\": \"#e94242\"\n },\n \"type\": \"GPU\"\n }\n ]\n },",
"alarmType": "cuda OOM",
"status": "running、blocking、restart、exited、failed",
"uid": "1234123412352311"
}
],
"message": "server error",
"requestId": "real request ID",
"total": "10"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Sysom.ServerError | Server error, please correct the code according to the error message. %s. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。