This section describes how to install the Volcano components (vc-scheduler and vc-controller-manager). If you need to use other open-source Volcano components, install them by yourself and ensure their security.
docker images | grep volcanosh
1 2 | volcanosh/vc-controller-manager v1.7.0 84c73128cc55 3 days ago 44.5MB volcanosh/vc-scheduler v1.7.0 e90c114c75b1 3 days ago 188MB |
vi /etc/logrotate.d/file_name
Example:
vi /etc/logrotate.d/volcano
/var/log/mindx-dl/volcano-*/*.log{
daily
rotate 8
size 50M
compress
dateext
missingok
notifempty
copytruncate
create 0640 hwMindX hwMindX
sharedscripts
postrotate
chmod 640 /var/log/mindx-dl/volcano-*/*.log
chmod 440 /var/log/mindx-dl/volcano-*/*.log-*
endscript
}
chmod 640 /etc/logrotate.d/file_name chown root /etc/logrotate.d/file_name
chmod 640 /etc/logrotate.d/volcano chown root /etc/logrotate.d/volcano
Configuration Item |
Description |
Possible Value |
|---|---|---|
daily |
Log dump frequency |
|
rotate x |
Number of times that log files are dumped before they are deleted |
x indicates the number of backups. Example:
|
size xx |
A log file is dumped only when its size reaches the value of this parameter. |
The size unit can be specified as follows:
For example, size 50M indicates that a log file is dumped when its size reaches 50 MB. NOTE:
logrotate periodically checks the sizes of log files based on the configured dump frequency. Dump is triggered only when the size of a log file exceeds the value of size. This means that logrotate does not dump a log file as soon as it reaches its size limit. |
compress |
Whether to compress dumped logs using gzip |
|
notifempty |
Whether to dump empty files |
|
...
kind: Deployment
...
labels:
app: volcano-scheduler
spec:
replicas: 1
...
spec:
...
imagePullPolicy: "IfNotPresent"
resources:
requests:
memory: 4Gi
cpu: 5500m
limits:
memory: 8Gi
cpu: 5500m
...
kind: Deployment
...
labels:
app: volcano-controller
spec:
...
spec:
...
resources:
requests:
memory: 3Gi
cpu: 2000m
limits:
memory: 3Gi
cpu: 2000m
...
...
data:
volcano-scheduler.conf: |
actions: "enqueue, allocate, backfill"
tiers:
- plugins:
- name: priority
enableNodeOrder: false
- name: gang
enableNodeOrder: false
- name: conformance
enableNodeOrder: false
- name: volcano-npu_v7.3.0_linux-aarch64 # v7.3.0 indicates the MindCluster version. The number varies depending on the actual version.
- plugins:
- name: drf
enableNodeOrder: false
- name: predicates
enableNodeOrder: false
arguments:
predicate.GPUSharingEnable: false
predicate.GPUNumberEnable: false
- name: proportion
enableNodeOrder: false
- name: nodeorder
- name: binpack
enableNodeOrder: false
....
...
kind: Deployment
metadata:
name: volcano-scheduler
namespace: volcano-system
labels:
app: volcano-scheduler
spec:
...
template:
...
- name: volcano-scheduler
image: volcanosh/vc-scheduler:v1.7.0
args: [ ...
...
--enable-healthz=true # To ensure that the Volcano health check interface can be accessed, the value of this parameter must be true.
--enable-metrics=true # To ensure that the Prometheus information collection interface can be accessed, the value of this parameter must be true.
...
...
Access Mode |
Protocol |
Method |
Description |
Component |
|---|---|---|---|---|
http://podIP:11251/healthz |
http |
Get |
Health check interface |
volcano-controller |
http://podIP:11251/healthz |
http |
Get |
Health check interface |
volcano-scheduler |
http://volcano-scheduler-serviceIP:8080/metrics |
http |
Get |
Prometheus information collection interface |
volcano-scheduler |
...
data:
volcano-scheduler.conf: |
...
configurations:
- name: init-params
arguments: {"grace-over-time":"900","presetVirtualDevice":"true","nslb-version":"1.0","shared-tor-num":"2","useClusterInfoManager":"false","self-maintain-available-card":"true","super-pod-size": "48","reserve-nodes": "2","forceEnqueue":"true"}
...
Parameter |
Default Value |
Description |
|---|---|---|
grace-over-time |
900 |
Maximum time required for deleting a pod in graceful deletion mode during rescheduling. The value ranges from 2 to 3600, in seconds. This field indicates the graceful deletion mode during rescheduling. Graceful deletion means that during rescheduling, the system waits for Volcano to perform related operations for pod deletion. If the pod is not deleted after 900 seconds, it is forcibly deleted. |
presetVirtualDevice |
true |
Virtualization mode.
|
nslb-version |
1.0 |
Switch affinity scheduling version. The value can be 1.0 or 2.0. NOTE:
|
shared-tor-num |
2 |
Maximum number of shared switches that can be used by a single task in switch affinity scheduling 2.0. The value can be 1 or 2. This parameter takes effect only when nslb-version is set to 2.0. For details about switch affinity scheduling (1.0 or 2.0), see Node-based Affinity. |
useClusterInfoManager |
true |
Method of obtaining cluster information by Volcano. The options are as follows:
NOTE:
By default, ConfigMap reported by ClusterD is used. In later versions, ConfigMap reported by Ascend Device Plugin and NodeD cannot be read. |
self-maintain-available-card |
true |
Whether Volcano self-maintains the available processor status. The options are as follows:
|
super-pod-size |
48 |
Number of nodes in an Atlas 900 A3 SuperPoD. |
reserve-nodes |
2 |
Number of reserved nodes in an Atlas 900 A3 SuperPoD. NOTE:
If the value of reserve-nodes is greater than that of super-pod-size, the following scenarios may occur:
|
forceEnqueue |
true |
Whether a job is forcibly added to the to-be-scheduled queue when cluster NPU resources are sufficient. The options are as follows:
For details about this parameter, see Volcano Actions. |
data:
volcano-scheduler.conf: |
...
- name: proportion
enableNodeOrder: false
- name: nodeorder
enableNodeOrder: false # (Optional) Disable the nodeorder plugin when nodeAffinity and podAntiAffinity are not used for scheduling.
...
containers:
- name: volcano-scheduler
image: volcanosh/vc-scheduler:v1.7.0
command: ["/bin/ash"]
args: ["-c", "umask 027; GOMEMLIMIT=15000000000 GOGC=off /vc-scheduler # Add GOMEMLIMIT=15000000000 and GOGC=off fields.
--scheduler-conf=/volcano.scheduler/volcano-scheduler.conf
--plugins-dir=plugins
--logtostderr=false
--log_dir=/var/log/mindx-dl/volcano-scheduler
--log_file=/var/log/mindx-dl/volcano-scheduler/volcano-scheduler.log
-v=2 2>&1"]
imagePullPolicy: "IfNotPresent"
resources:
requests:
memory: 10000Mi #Change 4 GiB to 10000 MiB.
cpu: 5500m
limits:
memory: 15000Mi # #Change 8 GiB to 15000 MiB.
cpu: 5500m
...
kubectl apply -f volcano-v{version}.yaml
Startup example:
namespace/volcano-system created namespace/volcano-monitoring created configmap/volcano-scheduler-configmap created serviceaccount/volcano-scheduler created clusterrole.rbac.authorization.k8s.io/volcano-scheduler created clusterrolebinding.rbac.authorization.k8s.io/volcano-scheduler-role created deployment.apps/volcano-scheduler created service/volcano-scheduler-service created serviceaccount/volcano-controllers created clusterrole.rbac.authorization.k8s.io/volcano-controllers created clusterrolebinding.rbac.authorization.k8s.io/volcano-controllers-role created deployment.apps/volcano-controllers created customresourcedefinition.apiextensions.k8s.io/jobs.batch.volcano.sh created customresourcedefinition.apiextensions.k8s.io/commands.bus.volcano.sh created customresourcedefinition.apiextensions.k8s.io/podgroups.scheduling.volcano.sh created customresourcedefinition.apiextensions.k8s.io/queues.scheduling.volcano.sh created customresourcedefinition.apiextensions.k8s.io/numatopologies.nodeinfo.volcano.sh created
kubectl get pod -n volcano-system
1 2 3 | NAME READY STATUS RESTARTS AGE volcano-controllers-5cf8d788d5-qdpzq 1/1 Running 0 1m volcano-scheduler-6cffd555c9-45k7c 1/1 Running 0 1m |
Parameter |
Type |
Default Value |
Description |
|---|---|---|---|
--log-dir |
String |
None |
Log directory. The default value in the component startup YAML file is /var/log/mindx-dl/volcano-scheduler. |
--log-file |
String |
None |
Log file name. The default value in the component startup YAML file is /var/log/mindx-dl/volcano-scheduler/volcano-scheduler.log. NOTE:
Dumped files are named in the format of "volcano-scheduler.log-dump triggering time.gz", for example, volcano-scheduler.log-20230926.gz. |
--scheduler-conf |
String |
/volcano.scheduler/volcano-scheduler.conf |
Absolute path of the configuration file of the scheduling component. |
--logtostderr |
Bool |
false |
Whether to print logs in the standard output.
|
-v |
Integer |
2 |
Log output level.
|
--plugins-dir |
String |
plugins |
Path for loading the scheduler plugin. |
--version |
Bool |
false |
Whether to query the volcano-scheduler binary version.
|
--log_file_max_size |
Integer |
1800 |
Maximum size of a log file, in MB. NOTE:
When the size of a log file exceeds the threshold, the log content is cleared. |
--leader-elect |
Bool |
false |
Primary node selected during multi-copy startup. |
--percentage-nodes-to-find |
Integer |
100 |
Percentage of available nodes selected during job scheduling to the total number of nodes in a cluster. |
Parameter |
Type |
Default Value |
Description |
|---|---|---|---|
--log-dir |
String |
None |
Log directory. The default value in the component startup YAML file is /var/log/mindx-dl/volcano-controller. |
--log-file |
String |
None |
Log file name. The default value in the component startup YAML file is /var/log/mindx-dl/volcano-controller/volcano-controller.log. NOTE:
Dumped files are named in the format of "volcano-controller.log-dump triggering time.gz", for example, volcano-controller.log-20230926.gz. |
--logtostderr |
Bool |
false |
Whether to print logs in the standard output.
|
-v |
Integer |
4 |
Log output level.
|
--version |
Bool |
false |
volcano-controller binary version number. |
--log_file_max_size |
Integer |
1800 |
Maximum size of a log file, in MB. NOTE:
When the size of a log file exceeds the threshold, the log content is cleared. |
Volcano is open-source software. Only common startup parameters are listed here. For details about other parameters, see the description of the open-source software.