Volcano supports affinity scheduling of switches. To use this function, you need to upload the mapping between switches and server nodes for Volcano to use.
Currently, only training and inference jobs support switch affinity scheduling of the entire NPU. Static or dynamic vNPU scheduling is not supported.
The LLD file name must be lld.xlsx.
Go to the mindcluster-deploy repository and access the corresponding branch based on mindcluster-deploy Version Description. Download the lld_to_cm.py file in the samples/utils directory and upload the file to the directory on the management node used in Step 1.
python ./lld_to_cm.py --num 32
kubectl get cm -n kube-system basic-tor-node-cm
If the following information is displayed, the creation is successful:
1 2 | NAME DATA AGE basic-tor-node-cm 1 8s |
To configure affinity scheduling for switches, you need to set the tor-affinity parameter in the job YAML file. For details about the parameter, see the following table.
Parameter |
Value |
Description |
|---|---|---|
(.kind=="AscendJob").metadata.labels.tor-affinity |
|
The default value is null, indicating that switch affinity scheduling is not used. You need to set this parameter based on the job type. NOTE:
|