Project: Volcano (Orchestration & Management / Scheduling & Orchestration)
File: command-line-enhancement.md

; Dec. 16, 2019 - - - - - `vcctl` is the command line of

The main functions are listed below: | Command Format | Usage | | - | - | | `vcctl job delete -N <job_name> -n <namespace>` | delete a job | | `vcctl job list -S <scheduler> -n <namespace>` | list job info | | `vcctl job resume -N <job_name> -n <namespace>` | resume a job | | `vcctl job run -f <yamlfile> -i <image> -L <resourcelimit> -m <minavailable> -N <jobname> -n <namespace> -r <replicas> -R <resource_requeset> -S <scheduler>` | run job by parameters from the command line | | `vcctl job suspend -N <job_name> -n <namespace>` | suspend a job | | `vcctl job view -N <job_name> -n <namespace>` | show a job info | | Command Format | Usage | | - | - | | `vcctl queue create -n <queue_name> -w <weight>` | create a queue | | `vcctl queue delete -n <queue_name>` | delete a queue | | `vcctl queue get -n <queue_name>` | get a queue | | `vcctl queue list ` | list all the queue | | `vcctl queue operate -a <open/close/update> -n <queue_name> -w <weight>` | operate a queue | The similar Slurm command lines are listed below: | `vcctl` Function | Similar Slurm Command Line | | - | - | | `vcctl job run -f <yamlfile>` | `sbatch <jobfile>` | | `vcctl job run -N <jobname>` | `srun -J <jobname> ` | | `vcctl job delete -N <jobname> -n <namespace>` | `scancel <jobid> / -n <job_name> -u <user>` | | `vcctl job suspend -N <jobname> -n <namespace>` | `scontrol suspend <jobid>` | | `vcctl job resume -N <jobname> -n <namespace>` | `scontrol resume <jobid>` | | `vcctl job view -N <jobname> -n <namespace>` | `scontrol show job <jobid>` | | `vcctl job list --all-namespaces` | `scontrol show job` | | `vcctl job list -n <namespace>` | `squeue -u <user>` | | `vcctl queue create -n <queuename> -w <weight>` | `scontrol create PartitionName=<partitionname>` | | `vcctl queue delete -n <queuename>` | `scontrol delete PartitionName=<partitionname>` | | `vcctl queue get -n <queuename>` | `squeue -p <partitionname> & scontrol show partition <partition_name>` | | `vcctl queue list ` | `squeue -a & scontrol show partition` | | `vcctl queue operate -a <open/close/update> -n <queue_name> -w <weight>` | no similar commands | | Old Format | New Format | | - | - | | `vcctl job run -N <jobname>` | `vsub -j/--job-name <jobfile>` | | `vcctl job delete -N <jobname> -n <namespace>` | `vcancel -n <jobname> -N <namespace>` | | `vcctl job suspend -N <jobname> -n <namespace>` | `vsuspend -n <jobname> -N <namespace>` | | `vcctl job resume -N <jobname> -n <namespace>` | `vresume -n <jobname> -N <namespace>` | | `vcctl job view -N <jobname> -n <namespace>` | `vjobs -n <jobname> -N <namespace>` | | `vcctl job list -S <scheduler> -n <namespace>` | `vjobs -S <scheduler> -N <namespace>` | | `vcctl queue get -n <queuename>` | `vqueues -n <queuename>` | | `vcctl queue list ` | `vqueues` | Command `vsub` can also submit a batch job via `.sh` file, like: ```shell [user@host]$ vsub test.sh Submitted batch job test ``` The job file <test.sh> owns a format like: ```shell ... echo test.sh start on $(date) sleep 100 echo test.sh end on $(date) ``` | Old Format | New Format | | - | - | | `vcctl queue create -n <queuename> -w <weight>` | `vadmin qcreate -n <queuename> -w <weight>` | | `vcctl queue delete -n <queuename>`| `vadmin qcancel -n <queuename>` | | `vcctl queue operate -a open -n <queuename>`| `vadmin qopen -n <queuename>` | | `vcctl queue operate -a close -n <queuename>`| `vadmin qclose