resources
Query Slurm cluster CPU and GPU availability by partition, showing total, used, free capacity, and node counts. Filter nodes by free CPU, free GPU, or fully idle state.
Instructions
查询集群资源余量:每分区 CPU/GPU 的总量/已占/空闲与节点数。
一开始就限定查看范围(agent 与人类同款口径): flt=cpu_free(有空闲 CPU 的节点)、flt=cpu_gpu_free(CPU 和 GPU 都有空闲)、 flt=fully_idle(CPU 与 GPU 全空闲);gpu_only=true 只看有 GPU 的节点(可叠加)。 partition 限定分区。默认紧凑(分区聚合);带任一过滤或 include_nodes 才返回节点明细。不要自己拼 sinfo/scontrol。
Args: connection: cluster 连接 label partition: 只看该分区 flt: cpu_free | cpu_gpu_free | fully_idle gpu_only: 只看有 GPU 的节点(与其他条件叠加) include_nodes: 返回全部节点明细(大集群建议配合过滤)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flt | No | ||
| gpu_only | No | ||
| partition | No | ||
| connection | Yes | ||
| include_nodes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||