NodeD

Node Resources

mindx-dl-nodeinfo-<nodename>

When a fault occurs on a node, NodeD will create node-info-cm to report the fault.

Table 1 mindx-dl-nodeinfo-<nodename>

Parameter NameDescription
NodeInfoFault information at the node level.
FaultDevListList of faulty devices on the node.
- DeviceTypeType of the faulty device.
- DeviceIdID of the faulty device.
- FaultCodeFault code, a string composed of English letters and numbers, representing the fault code in hexadecimal.
- FaultLevelFault handling level.
  • NotHandleFault: No Action Required.
  • PreSeparateFault: If a job exists on this node, ignore; no jobs will be scheduled to this node during subsequent scheduling.
  • SeparateFault: Job rescheduling.
  • NodeStatusNode health status, determined by the device with the most severe fault handling level on this node.
  • Healthy: The fault handling level on this node exists and does not exceed NotHandleFault. The node is healthy and can perform training normally.
  • PreSeparate: The fault handling level on this node exists and does not exceed PreSeparateFault. The node is in a pre-isolated state, which may temporarily have no impact on jobs. After the job is affected and exits, no further jobs will be scheduled to this node.
  • UnHealthy: The fault handling level on this node includes SeparateFault. The node is a Faulty Node, which will affect training jobs. Jobs will be immediately migrated away from this node.
  • CheckCodeCheck code.

    Customizing Node Faults

    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 LevelFault Handling PolicyDescription
    NotHandleFaultNo action required.Have no impact on jobs.
    PreSeparateFaultIf 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.
    SeparateFaultJob reschedulingJobs will definitely be affected.

    The fault levels, from lowest to highest, are NotHandleFault < PreSeparateFault < SeparateFault.

    Table 3 Node status description

    Node StatusHighest Fault LevelFault Handling PolicyDescription
    HealthyNotHandleFaultNo action required.The node is healthy and can perform training normally.
    PreSeparatePreSeparateFaultIf 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.
    UnHealthySeparateFaultJob reschedulingThe 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, and UnHealthy are node statuses defined by MindCluster, primarily used for subsequent job scheduling and handling.
    • If a job on a PreSeparate node exits abnormally and requires resumable training, the unconditional retry function must be enabled.

    Health Probe

    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

    ItemDescription
    Path/
    MethodGET
    Default Port11255
    ProtocolHTTP (HTTPS when --tls-cert-file and --tls-private-key-file are correctly configured)

    Table 5 Response descriptions

    Status CodeTrigger ConditionDescription
    200 OKComponent is running normallyResponse body is ok
    404 Not FoundRequest path is not /The probe only responds to the root path
    405 Method Not AllowedRequest method is not GETK8s livenessProbe uses GET by default, so this is not normally triggered
    503 Service UnavailableCustom health check callback is registered and the check failsResponse body contains specific error information

    K8s LivenessProbe Configuration Example:

    livenessProbe:
      httpGet:
        path: /
        port: 11255
        scheme: HTTP
      initialDelaySeconds: 20
      periodSeconds: 15
      timeoutSeconds: 5
      failureThreshold: 3

    For detailed probe parameter descriptions, see Parameter Description.