查询资源池概览
更新时间:2025-10-24
描述
获取用户账号下的资源池统计信息,如资源池总数,节点总数,资源分配情况等。
请求结构
Plain Text
1GET ?action=DescribeResourcePoolOverview
2Host:aihc.bj.baidubce.com
3Authorization:authorization string
4ContentType: application/json
5version: v2
请求头域
除公共头域外,无其它特殊头域。
请求参数
无。
返回头域
除公共头域外,无其他特殊头域。
返回参数
| 参数名称 | 类型 | 说明 |
|---|---|---|
| resourcePoolsStatisticWithType | ResourcePoolsStatisticWithType | 按资源池类型划分的资源池统计信息列表,每个元素对应一种资源池类型,类型包括:1、common:通用资源池,2、dedicatedV2:托管资源池v2 |
返回示例
Plain Text
1{
2 "resourcePoolsStatisticWithType": [
3 {
4 "type": "dedicatedV2",
5 "nodesStatistic": {
6 "totalCount": 16
7 },
8 "acceleratorsStatistic": {
9 "resourceType": "Accelerator",
10 "capacity": 44,
11 "allocated": 2,
12 "idle": 0,
13 "allocationRate": 0.045454545454545456,
14 "utilizationRate": 0
15 },
16 "resourcesStatistic": [
17 {
18 "resourceType": "CPU",
19 "capacity": 914000,
20 "allocated": 31142,
21 "idle": 0,
22 "allocationRate": 0.034072210065645515,
23 "utilizationRate": 0
24 },
25 {
26 "resourceType": "Memory",
27 "capacity": 6017249181696,
28 "allocated": 75170316288,
29 "idle": 0,
30 "allocationRate": 0.012492471895074946,
31 "utilizationRate": 0
32 }
33 ],
34 "resourcePoolStatistics": [
35 {
36 "resourcePoolId": "aihc-7c2bk1a9o3zm",
37 "type": "dedicatedV2",
38 "name": "aihc-reg-pool-eurhl",
39 "nodesStatistic": {
40 "totalCount": 0
41 },
42 "resourcesStatistic": [
43 {
44 "resourceType": "CPU",
45 "capacity": 0,
46 "allocated": 0,
47 "idle": 0,
48 "allocationRate": 0,
49 "utilizationRate": 0
50 },
51 {
52 "resourceType": "Memory",
53 "capacity": 0,
54 "allocated": 0,
55 "idle": 0,
56 "allocationRate": 0,
57 "utilizationRate": 0
58 }
59 ],
60 "acceleratorsStatistic": {
61 "resourceType": "Accelerator",
62 "capacity": 0,
63 "allocated": 0,
64 "idle": 0,
65 "allocationRate": 0,
66 "utilizationRate": 0
67 }
68 },
69 ...
70 ]
71 },
72 {
73 "type": "common",
74 "nodesStatistic": {
75 "totalCount": 23,
76 "nodeHealthyStatistic": {
77 "10.1.22.111": true,
78 "10.1.22.113": true,
79 "10.1.22.197": true,
80 "10.1.22.251": true,
81 "10.1.22.252": true,
82 "10.1.22.253": true
83 }
84 },
85 "acceleratorsStatistic": {
86 "resourceType": "Accelerator",
87 "capacity": 56,
88 "allocated": 5,
89 "idle": 0,
90 "allocationRate": 0.08928571428571429,
91 "utilizationRate": 0
92 },
93 "resourcesStatistic": [
94 {
95 "resourceType": "CPU",
96 "capacity": 1048000,
97 "allocated": 172755,
98 "idle": 0,
99 "allocationRate": 0.16484255725190838,
100 "utilizationRate": 0
101 },
102 {
103 "resourceType": "Memory",
104 "capacity": 7726646165504,
105 "allocated": 268093620224,
106 "idle": 0,
107 "allocationRate": 0.03469728191008894,
108 "utilizationRate": 0
109 }
110 ],
111 "resourcePoolStatistics": [
112 {
113 "resourcePoolId": "cce-ycfzg3te",
114 "type": "common",
115 "name": "AIHC-百舸巡检集群",
116 "nodesStatistic": {
117 "totalCount": 6,
118 "nodeHealthyStatistic": {
119 "10.1.22.111": true,
120 "10.1.22.113": true,
121 "10.1.22.197": true,
122 "10.1.22.251": true,
123 "10.1.22.252": true,
124 "10.1.22.253": true
125 }
126 },
127 "resourcesStatistic": [
128 {
129 "resourceType": "CPU",
130 "capacity": 320000,
131 "allocated": 39320,
132 "idle": 0,
133 "allocationRate": 0.122875,
134 "utilizationRate": 0
135 },
136 {
137 "resourceType": "Memory",
138 "capacity": 2473901162496,
139 "allocated": 40277901312,
140 "idle": 0,
141 "allocationRate": 0.0162811279296875,
142 "utilizationRate": 0
143 }
144 ],
145 "acceleratorsStatistic": {
146 "resourceType": "Accelerator",
147 "capacity": 16,
148 "allocated": 0,
149 "idle": 0,
150 "allocationRate": 0,
151 "utilizationRate": 0
152 },
153 "nodeResourceStatistic": {
154 "10.1.22.111": {
155 "isAcclerator": true,
156 "accleratorType": "A100-80G",
157 "accleratorDescriptor": "baidu.com/a100_80g_cgpu",
158 "capacity": {
159 "milliCPUcores": 128000,
160 "cpuCores": 128,
161 "memoryBytes": 1099511627776,
162 "memoryGi": 1024,
163 "gpuNum": 8
164 },
165 "allocatable": {
166 "milliCPUcores": 125600,
167 "cpuCores": 0,
168 "memoryBytes": 1051917819904,
169 "memoryGi": 979,
170 "gpuNum": 8
171 },
172 "allocated": {
173 "milliCPUcores": 2195,
174 "cpuCores": 3,
175 "memoryBytes": 2573205504,
176 "memoryGi": 3
177 },
178 "workloadAvailable": {
179 "milliCPUcores": 123405,
180 "cpuCores": 123,
181 "memoryBytes": 1049344614400,
182 "memoryGi": 977
183 },
184 "workloadAllocated": {
185 "milliCPUcores": 0,
186 "cpuCores": 0,
187 "memoryBytes": 0,
188 "memoryGi": 0
189 },
190 "remaining": {
191 "milliCPUcores": 123405,
192 "cpuCores": 123,
193 "memoryBytes": 1049344614400,
194 "memoryGi": 977
195 },
196 "resourceConfig": "128核 / 1024GB / A100-80G * 8.0"
197 },
198 "10.1.22.113": {
199 "isAcclerator": true,
200 "accleratorType": "A100-80G",
201 "accleratorDescriptor": "baidu.com/a100_80g_cgpu",
202 "capacity": {
203 "milliCPUcores": 128000,
204 "cpuCores": 128,
205 "memoryBytes": 1099511627776,
206 "memoryGi": 1024,
207 "gpuNum": 8
208 },
209 "allocatable": {
210 "milliCPUcores": 125600,
211 "cpuCores": 0,
212 "memoryBytes": 1051102031872,
213 "memoryGi": 978,
214 "gpuNum": 8
215 },
216 "allocated": {
217 "milliCPUcores": 3085,
218 "cpuCores": 4,
219 "memoryBytes": 3636461568,
220 "memoryGi": 4
221 },
222 "workloadAvailable": {
223 "milliCPUcores": 122515,
224 "cpuCores": 122,
225 "memoryBytes": 1047465570304,
226 "memoryGi": 975
227 },
228 "workloadAllocated": {
229 "milliCPUcores": 0,
230 "cpuCores": 0,
231 "memoryBytes": 0,
232 "memoryGi": 0
233 },
234 "remaining": {
235 "milliCPUcores": 122515,
236 "cpuCores": 122,
237 "memoryBytes": 1047465570304,
238 "memoryGi": 975
239 },
240 "resourceConfig": "128核 / 1024GB / A100-80G * 8.0"
241 },
242 "10.1.22.197": {
243 "capacity": {
244 "milliCPUcores": 16000,
245 "cpuCores": 16,
246 "memoryBytes": 68719476736,
247 "memoryGi": 64
248 },
249 "allocatable": {
250 "milliCPUcores": 15600,
251 "cpuCores": 0,
252 "memoryBytes": 61521682432,
253 "memoryGi": 57
254 },
255 "allocated": {
256 "milliCPUcores": 14960,
257 "cpuCores": 15,
258 "memoryBytes": 16701718528,
259 "memoryGi": 16
260 },
261 "workloadAvailable": {
262 "milliCPUcores": 640,
263 "cpuCores": 0,
264 "memoryBytes": 44819963904,
265 "memoryGi": 41
266 },
267 "workloadAllocated": {
268 "milliCPUcores": 0,
269 "cpuCores": 0,
270 "memoryBytes": 0,
271 "memoryGi": 0
272 },
273 "remaining": {
274 "milliCPUcores": 640,
275 "cpuCores": 0,
276 "memoryBytes": 44819963904,
277 "memoryGi": 41
278 },
279 "resourceConfig": "16核 / 64GB"
280 },
281 "10.1.22.251": {
282 "capacity": {
283 "milliCPUcores": 16000,
284 "cpuCores": 16,
285 "memoryBytes": 68719476736,
286 "memoryGi": 64
287 },
288 "allocatable": {
289 "milliCPUcores": 15600,
290 "cpuCores": 0,
291 "memoryBytes": 61521661952,
292 "memoryGi": 57
293 },
294 "allocated": {
295 "milliCPUcores": 5810,
296 "cpuCores": 6,
297 "memoryBytes": 4204789760,
298 "memoryGi": 4
299 },
300 "workloadAvailable": {
301 "milliCPUcores": 9790,
302 "cpuCores": 9,
303 "memoryBytes": 57316872192,
304 "memoryGi": 53
305 },
306 "workloadAllocated": {
307 "milliCPUcores": 0,
308 "cpuCores": 0,
309 "memoryBytes": 0,
310 "memoryGi": 0
311 },
312 "remaining": {
313 "milliCPUcores": 9790,
314 "cpuCores": 9,
315 "memoryBytes": 57316872192,
316 "memoryGi": 53
317 },
318 "taskPodList": [
319 {
320 "podName": "aihcpom-failover-64c6fc5d9d-jtwc7",
321 "namespace": "aihc-system"
322 }
323 ],
324 "resourceConfig": "16核 / 64GB"
325 },
326 "10.1.22.252": {
327 "capacity": {
328 "milliCPUcores": 16000,
329 "cpuCores": 16,
330 "memoryBytes": 68719476736,
331 "memoryGi": 64
332 },
333 "allocatable": {
334 "milliCPUcores": 15600,
335 "cpuCores": 0,
336 "memoryBytes": 61521637376,
337 "memoryGi": 57
338 },
339 "allocated": {
340 "milliCPUcores": 6580,
341 "cpuCores": 7,
342 "memoryBytes": 6740246528,
343 "memoryGi": 7
344 },
345 "workloadAvailable": {
346 "milliCPUcores": 9020,
347 "cpuCores": 9,
348 "memoryBytes": 54781390848,
349 "memoryGi": 51
350 },
351 "workloadAllocated": {
352 "milliCPUcores": 0,
353 "cpuCores": 0,
354 "memoryBytes": 0,
355 "memoryGi": 0
356 },
357 "remaining": {
358 "milliCPUcores": 9020,
359 "cpuCores": 9,
360 "memoryBytes": 54781390848,
361 "memoryGi": 51
362 },
363 "resourceConfig": "16核 / 64GB"
364 },
365 "10.1.22.253": {
366 "capacity": {
367 "milliCPUcores": 16000,
368 "cpuCores": 16,
369 "memoryBytes": 68719476736,
370 "memoryGi": 64
371 },
372 "allocatable": {
373 "milliCPUcores": 15600,
374 "cpuCores": 0,
375 "memoryBytes": 61521661952,
376 "memoryGi": 57
377 },
378 "allocated": {
379 "milliCPUcores": 6690,
380 "cpuCores": 7,
381 "memoryBytes": 6421479424,
382 "memoryGi": 6
383 },
384 "workloadAvailable": {
385 "milliCPUcores": 8910,
386 "cpuCores": 8,
387 "memoryBytes": 55100182528,
388 "memoryGi": 51
389 },
390 "workloadAllocated": {
391 "milliCPUcores": 0,
392 "cpuCores": 0,
393 "memoryBytes": 0,
394 "memoryGi": 0
395 },
396 "remaining": {
397 "milliCPUcores": 8910,
398 "cpuCores": 8,
399 "memoryBytes": 55100182528,
400 "memoryGi": 51
401 },
402 "resourceConfig": "16核 / 64GB"
403 }
404 }
405 },
406 ...
407 ]
408 }
409 ]
410}
