InfiniBand Topology Provider
Topograph provides two live variations of the InfiniBand provider and one offline simulation variant. The live providers discover the IB fabric switch tree using ibnetdiscover, which is useful for any cluster — CPU-only, mixed, or GPU-accelerated — where topology-aware scheduling across an InfiniBand fabric improves workload performance. NVLink domain discovery is an additional capability that applies only to nodes with NVLink-connected NVIDIA GPUs.
Why automate IB discovery? Hand-maintaining IB topology — a static topology.conf or a set of hand-applied node labels — is feasible at ~32 nodes with a stable network and a careful operator. It does not scale. At 1,000 nodes with InfiniBand fabric churn, NVLink partitions shifting with tenant allocation, and a constant background rate of link degradation and node cycling, manual maintenance becomes the dominant source of scheduling misplacement. Topograph keeps topology data current as the cluster changes, removing that burden.
The choice of which to use depends on the specifics of the deployment environment:
- Use
infiniband-bmfor bare-metal clusters (e.g. Slurm) - Use
infiniband-k8sfor Kubernetes clusters - Use
infiniband-simto replay a savedibnetdiscovercapture without fabric access
If NetQ is deployed in your environment, consider using the NetQ provider instead — it discovers topology via the NetQ management API rather than directly from the fabric, which avoids node access requirements and is the standard approach for Spectrum-X environments.
For Multi-Node NVLink (MNNVL) Kubernetes clusters (e.g. GB200 NVL72), do not substitute the DRA provider when backend-fabric locality matters. The DRA provider is limited to Slinky topology/block output, requires nvidia.com/gpu.clique to already be present on every participating node, and discovers only NVLink partition membership. It does not discover the InfiniBand or Ethernet switch fabric between partitions, so it cannot guide placement when a workload spans more than one NVLink partition. Use infiniband-k8s (or NetQ, when available) to include that fabric hierarchy.
All three variants are single-region only (multi-region requests return a 400 Bad Request error). No CSP credentials are required.
Nodes are matched by the host name in each HCA’s node description (for example node-01 mlx5_0). When that name and the cluster node name differ only by domain, as when Kubernetes registers nodes by FQDN (node-01.example.com) while the HCA reports the short name, the short names (up to the first .) are compared instead. This fallback applies only when at least one of the two names is short, so two different FQDNs (node-01.a.lab and node-01.b.lab) never match. A short name shared by more than one cluster node is skipped with a warning, as is a fallback match for a node that another HCA reports under a different host name; IP-address node names are compared as-is.
Output
All three variants produce the same fabric topology representation, and are in turn consumed by whichever engine you configure. The simulation variant has no accelerator-domain data:
- Slurm engine (
engine: slurm) — writes atopology.conffile describing the switch tree, used by the Slurm topology plugin for topology-aware scheduling - Kubernetes engine (
engine: k8s) — appliesfabric.topograph.run/labels to nodes reflecting their position in the switch hierarchy and (where applicable) their NVLink domain - NFD engine (
engine: nfd) — publishes topology as Node Feature DiscoveryNodeFeatureandNodeFeatureGroupcustom resources - Slinky engine (
engine: slinky) — writes topology data to a Kubernetes ConfigMap for Slurm-on-Kubernetes deployments
See the engine documentation (docs/engines/) for details on each output format.
infiniband-bm (Bare-Metal)
Prerequisites
pdshmust be installed on the node running Topograph and able to reach at least one node per IB fabric segment — Topograph discovers the full fabric from a single entry point per segment, so every node does not need to be reachable via pdshibnetdiscovermust be available on cluster nodes (invoked viapdshwithsudo) — part of the standardinfiniband-diagspackage (dnf install infiniband-diags/apt install infiniband-diags), expected to already be present on any properly configured IB system- NVIDIA GPU driver required on nodes with NVLink-connected GPUs when
accelerator.source: nvidia-smiis configured. Nodes without accelerator-domain data are still included in the IB switch tree.
How It Works
- Runs
sudo ibnetdiscoverviapdshon one node per IB fabric segment to map the full switch tree - When the
acceleratorsection selectsnvidia-smi, runsnvidia-smi --query-gpu=fabric.clusterUuid,fabric.cliqueId --format=csv,noheaderviapdshacross all nodes to collect NVLink partition IDs. Identical rows returned for multiple GPUs are merged, unavailable (N/A) fields are rejected, and the CSV pair is normalized toClusterUUID.CliqueId— the same format asnvidia.com/gpu.cliqueset by the GPU Operator device plugin on MNNVL systems. - Combines the switch tree and any NVLink clique data into the topology graph
Configuration
No credentials are required. Set provider: infiniband-bm in your Topograph config:
Accelerator discovery is independent of InfiniBand fabric discovery and is
disabled when the accelerator section is omitted or empty. Bare-metal
deployments support nvidia-smi or none:
Verifying the Output
After triggering topology generation, query the result endpoint:
For the Slurm engine, verify the generated topology.conf reflects the expected switch hierarchy. See the Slurm engine documentation for details.
infiniband-k8s (Kubernetes)
Prerequisites
- Topograph deployed via Helm — when
accelerator.sourceisnvidia-smi, the node-data-broker DaemonSet collects NVLink partition IDs from each node and stores them as Kubernetes node annotations (topograph.run/cluster-id). Withkubernetes-labelornone, the broker skips that collection. - The default
nvcr.io/nvidia/topograph/topographimage includesibnetdiscover(Alpinerdma-core). No separate InfiniBand image is required. IB deployments typically run the broker privileged and mount host/sys/classsoibnetdiscovercan reach IB devices — seevalues.k8s.ib-example.yaml. - NVIDIA GPU Operator — standard on NVIDIA GPU Kubernetes clusters; manages the device plugin DaemonSet used to read NVLink clique IDs. Required only for NVLink domain discovery; on clusters without NVLink-connected GPUs this does not apply and the provider will still discover the IB switch tree.
How It Works
- Runs
ibnetdiscoverby exec-ing into a node-data-broker pod on each node to map the switch tree - When
provider.params.acceleratoris non-empty, resolves accelerator domains independently using itssource:nvidia-smireads the broker-writtentopograph.run/cluster-idannotation,kubernetes-labelreads a configured Node label, andnoneexplicitly disables accelerator discovery. Omitting the section or using an empty object also disables it. NVL partition IDs useClusterUUID.CliqueId, the same format asnvidia.com/gpu.clique. - Combines the switch tree and any NVLink clique data into the topology graph
Configuration
No credentials are required. The provider uses the in-cluster service account automatically.
Set provider: infiniband-k8s in your Topograph config:
Parameters
Topology request parameters
The following optional parameters can be passed in the topology request payload:
For a manual request, keep accelerator.source consistent with the source configured for the deployed node-data-broker. In particular, source: nvidia-smi reads the broker-written topograph.run/cluster-id annotation; it does not execute nvidia-smi or change the broker’s GPU Operator workload target.
Helm node-data-broker settings
The following settings select the GPU Operator workload used by the node-data-broker when provider.params.accelerator.source is nvidia-smi. They are deployment settings and cannot be changed by a topology request:
With Helm, configure the accelerator source under provider.params. The chart writes the provider configuration to both the node-data-broker and node-observer ConfigMaps, keeping chart-generated topology requests aligned with broker collection. When the source is nvidia-smi, omitted gpuOperatorNamespace and devicePluginDaemonSet values are rendered as gpu-operator and nvidia-device-plugin-daemonset, respectively. The chart also drops the broker’s GPU Operator pod-exec permissions when the source is not nvidia-smi:
To use a non-default GPU Operator namespace or device-plugin DaemonSet:
The node-data-broker applies node annotations once when its pod starts. Restart the broker pod to re-apply them after relevant node or provider metadata changes.
If ibnetdiscover needs extra config files, the chart can render ConfigMaps and mount them into the node-data-broker pods:
Example request payload with nodeSelector:
Verifying the Output
After topology generation, inspect the node labels applied by Topograph:
See the Kubernetes engine documentation for details on the label schema.
infiniband-sim (Offline Simulation)
infiniband-sim reads a saved ibnetdiscover output file and uses the same parser and switch-tree builder as the live providers. It requires no InfiniBand devices, Kubernetes cluster, or credentials. It simulates fabric tiers only; it does not discover accelerator domains.
Set provider.params.ibnetdiscoverFileName to a readable file path containing raw ibnetdiscover text on the Topograph server. modelFileName is reserved for YAML models used by other simulation providers and is rejected here. For example, from the repository root:
Instance IDs are hostnames in this variant. The request’s nodes list filters the captured fabric to those hosts. With the graph engine, omitting nodes selects all named hosts connected to a switch in the capture. CA records without a switch connection are excluded from automatic selection because they cannot appear in the switch tree. A missing or invalid capture returns 400 Bad Request, as does a multi-region request. The sample capture is intended for local testing; use an absolute path when the server runs from a different working directory.