Enable MindCluster Volcano

Use this page to enable the MindCluster Volcano components delivered with Alauda AI Infrastructure NPU Management and run an NPU job through Volcano.

Volcano is optional and disabled by default. In v26.9.0-1 it was validated for one case only: a single Volcano Job that requests one card on an Ascend 310P node. Multi-replica jobs, fault rescheduling, other chip models, and use together with HAMi were not validated. The default whole-card allocation path does not need Volcano.

Commands on this page use the default Operator namespace npu-operator. If the Operator was installed in another namespace, replace npu-operator with that namespace.

Before you enable Volcano

Check each of the following. A missing item leaves the Volcano Pods Pending or the jobs unscheduled.

RequirementDetail
No other Volcano in the clusterThe components install the Volcano CRDs and a scheduler named volcano in the volcano-system namespace. Running them next to another Volcano installation was not validated.
A labeled management nodeThe Volcano controller and scheduler select nodes with masterselector=dls-master-node. NPU Feature Discovery assigns this label to control-plane nodes.
Same node as the Operator PodBoth Volcano Pods are scheduled onto the node that runs the NPU Operator Pod. The node must satisfy the label and have room for all three Pods.
Free resources on that nodeBy default the scheduler requests 5.5 CPU and 4Gi memory (8Gi limit), and the controller requests 2 CPU and 3Gi memory.
ClusterD enabled with VolcanoClusterD requires Volcano. Enabled alone, its Pod restarts repeatedly with volcano not exist, please deploy volcano. Enable clusterd, vccontroller, and vcscheduler together.
Device Plugin in Volcano modeSet devicePlugin.args.volcanoType: true. Without it, the scheduler sees no NPU and jobs stay Pending.
Volcano mode changes how NPUs are allocated

In Volcano mode, submit NPU workloads through Volcano with schedulerName: volcano. Allocation to Pods scheduled by the default Kubernetes scheduler was not validated in this mode. Do not switch a cluster that runs NPU workloads on the default scheduler without planning the change.

Check which node runs the Operator Pod and how much CPU it has left:

kubectl -n npu-operator get pods -l app=npu-operator -o wide
kubectl get nodes -L masterselector
kubectl describe node <node-name> | sed -n '/Allocated resources:/,/Events:/p'

1. Enable the components

Add the following to the NPUOperatorCtl instance. Keep the rest of the instance unchanged.

spec:
  devicePlugin:
    enabled: true
    args:
      volcanoType: true
  clusterd:
    enabled: true
  vccontroller:
    enabled: true
  vcscheduler:
    enabled: true

If the node that runs the Operator Pod has enough free resources for the defaults, this is all that is needed.

2. Adjust placement and resources on small management nodes

When the management nodes cannot fit the default requests, use the instance to move the Operator Pod to a labeled node with headroom and to lower the Volcano resources. The Volcano Pods follow the Operator Pod.

spec:
  operator:
    nodeSelector:
      kubernetes.io/hostname: <management-node-name>
  vccontroller:
    enabled: true
    controllerResources:
      requests:
        cpu: 50m
        memory: 128Mi
      limits:
        cpu: 400m
        memory: 1Gi
  vcscheduler:
    enabled: true
    schedulerResources:
      requests:
        cpu: 100m
        memory: 256Mi
      limits:
        cpu: 800m
        memory: 2Gi

Two points decide whether this works:

  • The node named in operator.nodeSelector must carry masterselector=dls-master-node. The Volcano Pods keep that selector in addition to following the Operator Pod.
  • Lower the limits together with the requests. The platform can raise a container's request when its limit is much larger: in validation, a controller with a 2 CPU limit and a 20m request was admitted with a 250m request and did not fit the node.

The values above are the ones used in validation for a single small job. Size them for the number of jobs and nodes in your cluster.

3. Verify the components

kubectl get npuclusterpolicy
kubectl -n volcano-system get pods -o wide
kubectl -n mindx-dl get pods
kubectl get queue

The policy returns to Ready, the volcano-controllers and volcano-scheduler Pods are Running, ClusterD is Running, and the default queue exists.

Confirm that the Device Plugin reports a free device to the scheduler. The list for the node's resource key must not be empty:

kubectl -n kube-system get configmap mindx-dl-deviceinfo-<node-name> \
  -o jsonpath='{.data.DeviceInfoCfg}'

For an idle Ascend 310P node the DeviceList entry for huawei.com/Ascend310P contains a device name such as Ascend310P-0.

4. Run a Volcano Job

apiVersion: batch.volcano.sh/v1alpha1
kind: Job
metadata:
  name: npu-volcano-smoke
spec:
  minAvailable: 1
  schedulerName: volcano
  queue: default
  tasks:
  - name: npu
    replicas: 1
    template:
      spec:
        runtimeClassName: ascend
        restartPolicy: Never
        containers:
        - name: probe
          image: <your-npu-image>
          command: ["sh", "-c", "ls /dev/davinci0 && echo NPU_VISIBLE"]
          resources:
            requests:
              huawei.com/Ascend310P: "1"
            limits:
              huawei.com/Ascend310P: "1"

Replace the resource key with the one the node reports.

kubectl get job.batch.volcano.sh npu-volcano-smoke
kubectl get pods -l volcano.sh/job-name=npu-volcano-smoke \
  -o custom-columns=NAME:.metadata.name,PHASE:.status.phase,SCHEDULER:.spec.schedulerName,NODE:.spec.nodeName

The Job reaches Completed, and the Pod shows volcano as its scheduler and ran on the NPU node.

If the Job stays Pending, see Troubleshooting.

Disable Volcano

Set vccontroller.enabled, vcscheduler.enabled, and clusterd.enabled to false, set devicePlugin.args.volcanoType to false, and remove the operator.nodeSelector and resource overrides you added. The policy returns to Ready and the Volcano and ClusterD Pods are removed.

The volcano-system and mindx-dl namespaces and the hypernodes.topology.volcano.sh CRD remain after the components are disabled. See Objects that remain after uninstall.