This section describes how to upgrade the MindCluster cluster scheduling components to their latest versions. You can upgrade them in either of the following ways:
Upgrade Method |
Cross-Version Upgrade Supported |
Whether to Stop Training/Inference Jobs |
Reference |
|---|---|---|---|
Full upgrade |
Yes |
Yes |
|
Image upgrade |
No |
No |
Section 7.6 |
This section does not apply if you have modified the source code (excluding configuration files) of MindCluster cluster scheduling components from a previous version. In such cases, analyze the code differences before performing the upgrade.
Before upgrading components, select the target component for check based on the actual installation scenario.
kubectl get pods -A
1 2 | NAMESPACE NAME READY STATUS RESTARTS AGE default ubuntu-pod 1/1 Running 32 (118m ago) 3d18h ... |
kubectl delete -f xxx.yaml # xxx indicates the name of the job YAML file. Set it as required.
kubectl edit cm -n cluster-system pingmesh-config
If the following information is displayed, pingmesh UnifiedBus network detection is disabled. In this case, skip Step 3.
Error from server (NotFound): configmaps "pingmesh-config" not found
docker run -it {Training image name}:tag /bin/bash
pip show taskd
If the following information is displayed, TaskD has been installed in the image.
Name: taskd Version: x.x.x Summary: Ascend MindCluster taskd is a new library for training management Home-page: UNKNOWN Author: Author-email: License: UNKNOWN Location: /usr/local/python3/lib/python3.10/site-packages Requires: grpcio, protobuf, pyOpenSSL, torch, torch-npu Required-by: