topology.yaml
Slurm configuration file for the topology plugins
- Provided by: slurm-client (Version: 25.11.2-1ubuntu2)
- Source: slurm-wlm
- Report a bug
Slurm configuration file for the topology plugins
topology.yaml is a YAML-formatted configuration file that defines multiple network topologies for optimizing job resource allocation in Slurm. The file must be located in the same directory as slurm.conf. Any text following a "#" in this file is treated as a comment through the end of that line.
Additional details are available in topology.conf(5) and in the Topology Guide: <https://slurm.schedmd.com/topology.html>
NOTE: Slurm will first check for topology.yaml. If this file exists, topology.conf will be ignored.
Each topology contains the following attributes:
Each topology must also define exactly one of the following topology types:
Each block topology contains the following attributes:
Each tree topology contains the following attribute:
---
- topology: topo1
cluster_default: true
tree:
switches:
- switch: sw_root
children: s[1-2]
- switch: s1
nodes: node[01-02]
- switch: s2
nodes: node[03-04]
- topology: topo2
cluster_default: false
block:
block_sizes:
- 4
- 16
blocks:
- block: b1
nodes: node[01-04]
- block: b2
nodes: node[05-08]
- block: b3
nodes: node[09-12]
- block: b4
nodes: node[13-16]
- topology: topo3
cluster_default: false
flat: true
Copyright (C) 2025 SchedMD LLC.
This file is part of Slurm, a resource management program. For details, see <https://slurm.schedmd.com/>.
Slurm is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Slurm is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.