If the resumable training function has been configured during the installation of Ascend Device Plugin and NodeD, skip this section. Otherwise, you need to configure Ascend Device Plugin and NodeD to enable this function.
Ascend Device Plugin can be started only in containerized mode.
In rescheduling mode, a fault of Ascend Device Plugin also triggers rescheduling.
...
containers:
- image: ascend-k8sdeviceplugin:v{version}
name: device-plugin-01
resources:
requests:
memory: 500Mi
cpu: 500m
limits:
memory: 500Mi
cpu: 500m
command: [ "/bin/bash", "-c", "--"]
args: [ "device-plugin
-useAscendDocker=true
-volcanoType=true # Volcano must be used in the rescheduling scenario.
-autoStowing=true # Whether to enable automatic management. The default value is true. If this parameter is set to false, automatic management is disabled. In this case, after the processor health status changes from unhealthy to healthy, or the network fault on the processor parameter plane is recovered, the processor will not be automatically added to the schedulable resource pool. This parameter applies only to Atlas training product.
-listWatchPeriod=5 # Set the health status check period. The value range is [3, 1800], in seconds.
-logFile=/var/log/mindx-dl/devicePlugin/devicePlugin.log
-logLevel=0" ]
securityContext:
privileged: true
readOnlyRootFilesystem: true
...
...
containers:
- image: ascend-k8sdeviceplugin:v{version}
name: device-plugin-01
resources:
requests:
memory: 500Mi
cpu: 500m
limits:
memory: 500Mi
cpu: 500m
command: [ "/bin/bash", "-c", "--"]
args: [ "device-plugin
-useAscendDocker=true
-volcanoType=true # Volcano must be used in the rescheduling scenario.
-autoStowing=true # Whether to enable automatic management. The default value is true. If this parameter is set to false, automatic management is disabled. In this case, after the processor health status changes from unhealthy to healthy, or the network fault on the processor parameter plane is recovered, the processor will not be automatically added to the schedulable resource pool. This parameter applies only to Atlas training product.
-hotReset=1 # Enable graceful fault tolerance. The system will automatically reset the faulty processor.
-listWatchPeriod=5 # Set the health status check period. The value range is [3, 1800], in seconds.
-logFile=/var/log/mindx-dl/devicePlugin/devicePlugin.log
-logLevel=0" ]
securityContext:
privileged: true
readOnlyRootFilesystem: true
...
kubectl apply -f device-plugin-xxx-v{version}.yaml
kubectl apply -f device-plugin-volcano-v{version}.yaml
Configure the interval for sending node status. You can manually modify the startup YAML file of NodeD to configure the interval for reporting node status.
vi noded-v{version}.yaml
...
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
imagePullPolicy: Never
command: [ "/bin/bash", "-c", "--"]
args: [ "/usr/local/bin/noded -logFile=/var/log/mindx-dl/noded/noded.log -logLevel=0 -reportInterval=5" ]
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: true
volumeMounts:
- name: log-noded
...