NodeD
When a fault occurs on a node, NodeD will create node-info-cm to report the fault.
Table 1 mindx-dl-nodeinfo-<nodename>
| Parameter Name | Description |
|---|---|
| NodeInfo | Fault information at the node level. |
| FaultDevList | List of faulty devices on the node. |
| - DeviceType | Type of the faulty device. |
| - DeviceId | ID of the faulty device. |
| - FaultCode | Fault code, a string composed of English letters and numbers, representing the fault code in hexadecimal. |
| - FaultLevel | Fault handling level. |
| NodeStatus | Node health status, determined by the device with the most severe fault handling level on this node. |
| CheckCode | Check code. |
The configuration file NodeDConfiguration.json of the NodeD component is a system configuration file. Do not modify it arbitrarily unless you have special requirements. If you need to modify the fault level of a fault code, you can do so through the mindx-dl-node-fault-config file created from NodeDConfiguration.json. For details, see (Optional) Configuring Node Hardware Fault Levels.
Table 2 Fault description
| Fault Level | Fault Handling Policy | Description |
|---|---|---|
| NotHandleFault | No action required. | Have no impact on jobs. |
| PreSeparateFault | If a job exists on this node, the fault is ignored; no jobs will be scheduled to this node during subsequent scheduling. | May cause jobs to be affected. |
| SeparateFault | Job rescheduling | Jobs will definitely be affected. |
The fault levels, from lowest to highest, are NotHandleFault < PreSeparateFault < SeparateFault.
Table 3 Node status description
| Node Status | Highest Fault Level | Fault Handling Policy | Description |
|---|---|---|---|
| Healthy | NotHandleFault | No action required. | The node is healthy and can perform training normally. |
| PreSeparate | PreSeparateFault | If a job exists on this node, the fault is ignored; no jobs will be scheduled to this node during subsequent scheduling. | The node is in a pre-isolated state. It may not affect jobs temporarily. After a job is affected and exits, no further jobs will be scheduled to this node. |
| UnHealthy | SeparateFault | Job rescheduling | The node is a faulty node that will affect training jobs. Jobs are immediately migrated away from this node. |
- The current health status of a node is primarily determined by the highest fault level of its hardware faults.
Healthy,PreSeparate, andUnHealthyare node statuses defined by MindCluster, primarily used for subsequent job scheduling and handling.- If a job on a
PreSeparatenode exits abnormally and requires resumable training, the unconditional retry function must be enabled.
NodeD starts an HTTP health probe service within the component, which is used by the K8s livenessProbe mechanism to detect the component's liveness status.
Table 4 Health probe interface
| Item | Description |
|---|---|
| Path | / |
| Method | GET |
| Default Port | 11255 |
| Protocol | HTTP (HTTPS when --tls-cert-file and --tls-private-key-file are correctly configured) |
Table 5 Response descriptions
| Status Code | Trigger Condition | Description |
|---|---|---|
| 200 OK | Component is running normally | Response body is ok |
| 404 Not Found | Request path is not / | The probe only responds to the root path |
| 405 Method Not Allowed | Request method is not GET | K8s livenessProbe uses GET by default, so this is not normally triggered |
| 503 Service Unavailable | Custom health check callback is registered and the check fails | Response body contains specific error information |
K8s LivenessProbe Configuration Example:
livenessProbe:
httpGet:
path: /
port: 11255
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 3For detailed probe parameter descriptions, see Parameter Description.