Together Volcano

作者 togethercomputer644d38225bbd无许可证收录于 2026年10月8日更新于 2026年10月8日

Install and use the Volcano batch scheduler on a Together AI Kubernetes GPU cluster for gang scheduling. Covers installing Volcano, creating queues, submitting all-or-nothing gang-scheduled jobs (vcjobs), and verifying placement. Reach for it when a job on a Together cluster needs its pods scheduled all-at-once or not at all, such as distributed multi-node training, rather than per-pod best-effort scheduling. Pins Volcano v1.15.0.

仅含说明DevOps & Cloud
AI 生成的概览

在 Together AI Kubernetes GPU 集群上安装并使用 Volcano 批处理调度器,实现成组调度。

功能
该技能指导在 Together AI Kubernetes GPU 集群上安装 Volcano v1.15.0,并说明如何创建队列、挂载共享存储以及提交成组调度的 vcjob。它提供队列、持久卷声明和全有或全无作业的 YAML 清单,以及验证调度结果的步骤。它还列出规则与注意事项,例如固定版本号和设置 schedulerName: volcano。
适用场景
当 Together 集群上的作业需要其 Pod 全部一起调度或全部不调度时使用,例如分布式多节点训练。它面向已处于 Ready 状态且已配置 kubectl 的集群,并与 together-gpu-clusters 技能配合使用。
运行要求
一个处于 Ready 状态并已配置 kubectl 的 Together AI Kubernetes GPU 集群;GPU 节点需暴露 nvidia.com/gpu,且已预装 NVIDIA 设备插件。需要网络访问以获取 Volcano 安装清单或 Helm 图表,可选地需要一个用于 ReadWriteMany 存储的共享 PersistentVolume。仅为说明文档,不附带脚本。

Volcano on Together GPU clusters

Volcano is a Kubernetes-native batch scheduler. Its key property is gang scheduling: a group of pods is placed all-at-once or not at all, so distributed training never starts with only some workers running. Use it when a job needs N pods to run together or not at all.

Public cookbook: https://docs.together.ai/docs/volcano-on-gpu-clusters. Pair this skill with the together-gpu-clusters skill, which covers creating the cluster and configuring kubectl.

Preconditions

  • A Together Kubernetes GPU cluster in the Ready state, with kubectl pointed at it (tg beta clusters get-credentials <cluster_id> --set-default-context).
  • GPU nodes expose nvidia.com/gpu; the NVIDIA device plugin is preinstalled on Together clusters. Confirm with:
bash
kubectl get nodes -o custom-columns='NODE:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu'

Install

Pin the version. Do not use master.

bash
kubectl apply -f https://raw.githubusercontent.com/volcano-sh/volcano/v1.15.0/installer/volcano-development.yamlkubectl -n volcano-system wait --for=condition=Available deployment --all --timeout=180s

A default queue is created automatically (kubectl get queue). Helm is an alternative: helm repo add volcano-sh https://volcano-sh.github.io/helm-charts && helm install volcano volcano-sh/volcano -n volcano-system --create-namespace.

Create a queue

A queue caps and weights the resources a set of jobs can use.

yaml
apiVersion: scheduling.volcano.sh/v1beta1kind: Queuemetadata:  name: researchspec:  reclaimable: true          # give idle capacity back to other queues  weight: 1                  # relative share under contention  capability:                # hard ceiling for this queue    nvidia.com/gpu: 8

Attach shared storage (optional)

Together provisions a static PersistentVolume named after the cluster's shared volume. Bind a ReadWriteMany PVC to it so every worker shares datasets and checkpoints, then mount it in the job (below).

yaml
apiVersion: v1kind: PersistentVolumeClaimmetadata:  name: shared-pvcspec:  accessModes: ["ReadWriteMany"]  storageClassName: shared-wekafs   # Together default shared storage class  volumeName: <shared-volume-name>  # the static PV named after your shared volume  resources:    requests:      storage: 100Gi

Run a gang-scheduled job

The gang guarantee comes from minAvailable on a Volcano Job (vcjob). Set schedulerName: volcano and a queue. The volumes/volumeMounts blocks are optional; drop them if the job needs no shared storage.

yaml
apiVersion: batch.volcano.sh/v1alpha1kind: Jobmetadata:  name: gpu-gangspec:  minAvailable: 4            # schedule all 4 pods together or none  schedulerName: volcano  queue: research  policies:    - event: PodEvicted      action: RestartJob     # restart the whole gang if a pod is evicted  tasks:    - replicas: 4      name: worker      template:        spec:          restartPolicy: OnFailure          containers:            - name: worker              image: nvidia/cuda:12.4.0-base-ubuntu22.04              command: ["bash", "-c", "nvidia-smi -L; sleep 300"]              resources:                limits:                  nvidia.com/gpu: 2   # 4 x 2 = 8 GPUs              volumeMounts:                - name: shared                  mountPath: /mnt/shared          volumes:            - name: shared              persistentVolumeClaim:                claimName: shared-pvc

Verify

  • kubectl get vcjob <name> should show STATUS Running and RUNNINGS equal to minAvailable.
  • kubectl get podgroup shows the gang; a Running phase means the whole group is placed.
  • A gang that cannot fit stays Inqueue with zero pods running (all-or-nothing). This is the signal Volcano is working, not a failure. Never "fix" it by lowering minAvailable below the job's real parallelism.

Rules and gotchas

  • Always pin the Volcano version in the install URL.
  • schedulerName: volcano must be on the pod template (on a vcjob it goes under spec). Without it, the default scheduler grabs the pods and there is no gang guarantee.
  • A job whose total request exceeds the queue's capability is rejected. Raise the cap or split the job.
  • To gang-schedule non-vcjob workloads (for example MPIJobs from the preinstalled MPI Operator), set schedulerName: volcano and attach a PodGroup. See https://volcano.sh/en/docs/podgroup/.
  • Volcano and Kueue can coexist on one cluster: Volcano owns pods with schedulerName: volcano; Kueue admits jobs on the default scheduler. Pick one per workload; do not point a single job at both.

Reference

来源与署名

来源:togethercomputer/skills位于skills/together-volcano提交644d382

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架