Ascend Operator allows a maximum of 20,000 replicas for a single Ascend Job.
docker images | grep ascend-operator
1 | ascend-operator v7.3.0 c532e9d0889c About an hour ago 137MB |
...
- name: ranktable-dir
mountPath: /user/mindx-dl/ranktable # Path in the container, which cannot be changed.
...
volumes:
- name: ascend-operator-log
hostPath:
path: /var/log/mindx-dl/ascend-operator
type: Directory
- name: ranktable-dir
hostPath:
path: /user/mindx-dl/ranktable # Path on the host, which must be the same as the root directory of the path for saving the hccl.json file in the job YAML file.
type: DirectoryOrCreate # Checks whether a given folder exists. If it does not exist, an empty folder is created.
...
mkdir -m 777 /user/mindx-dl/ranktable/{Mount path}
kubectl apply -f ascend-operator-v{version}.yaml
Startup example:
deployment.apps/ascend-operator-manager created serviceaccount/ascend-operator-manager created clusterrole.rbac.authorization.k8s.io/ascend-operator-manager-role created clusterrolebinding.rbac.authorization.k8s.io/ascend-operator-manager-rolebinding created customresourcedefinition.apiextensions.k8s.io/ascendjobs.mindxdl.gitee.com created ...
kubectl get pod -n mindx-dl
The following is a startup example. If Running is displayed, the component is started successfully.
1 2 3 | NAME READY STATUS RESTARTS AGE ... ascend-operator-7667495b6b-hwmjw 1/1 Running 0 11s |
Parameter |
Type |
Default Value |
Description |
|---|---|---|---|
-version |
Bool |
false |
Whether to query the Ascend Operator version number.
|
-logLevel |
Integer |
0 |
Log level. The options are as follows:
|
-maxAge |
Integer |
7 |
Time limit for backing up logs. The value ranges from 7 to 700, in days. |
-logFile |
String |
/var/log/mindx-dl/ascend-operator/ascend-operator.log |
Log file. NOTE:
If the size of a log file exceeds 20 MB, automatic dump is triggered. The maximum size of a log file cannot be changed. Dumped files are named in the format of "ascend-operator-dump triggering time.log", for example, ascend-operator-2023-10-07T03-38-24.402.log. |
-maxBackups |
Integer |
30 |
Maximum number of dumped log files that can be retained. The value ranges from 1 to 30. |
-enableGangScheduling |
Bool |
true |
Whether to enable gang scheduling. It is enabled by default. In this case, jobs are scheduled based on the specified scheduler. For details about the gang policy, see the official documentation of open source Volcano.
|
-isCompress |
Bool |
false |
Whether to compress and dump log files when the log file size reaches the dump threshold. (This parameter will be discarded later.)
|
-kubeconfig |
String |
None |
Path of KubeConfig. This parameter is mandatory when the program runs outside the cluster. |
-kubeApiBurst |
Integer |
100 |
Burst traffic used for communication with Kubernetes. The value range is (0, 10000]. If the value is not in the range, the default value 100 is used. |
-kubeApiQps |
Float32 |
50 |
Queries per second (QPS) used for communication with Kubernetes. The value range is (0, 10000]. If the value is not in the range, the default value 50 is used. |
-h or --help |
None |
None |
Help information. |