.. meta::
   :description: Deploy the Neuron Node Problem Detector and Recovery on Amazon EKS, and report Neuron Observer HBM and SRAM uncorrectable memory errors as Kubernetes NodeConditions.
   :keywords: Neuron, Node Problem Detector, NPD, node recovery, Neuron Observer, NodeCondition, EKS, HBM, SRAM, uncorrectable error
   :date-modified: 11/13/2026

.. _k8s-neuron-problem-detector-and-recovery:

Deploy Neuron Node Problem Detector and Recovery
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The Neuron Node Problem Detector and Recovery is a critical resiliency component that continuously monitors the health of Neuron devices on each Kubernetes node by detecting hardware and software errors such as device failures, driver problems, and runtime errors. It integrates with the Kubernetes Node Problem Detector framework to report Neuron-specific conditions. When unrecoverable issues are detected, it can automatically remediate problems by marking nodes as unhealthy and triggering node replacement to prevent workload scheduling on faulty hardware. The component can also publish CloudWatch metrics under the ``NeuronHealthCheck`` namespace for monitoring and alerting purposes.

**Requirements**

Before deploying the Neuron Node Problem Detector and Recovery, ensure the following requirements are met:

* **Neuron Driver:** Version 2.15 or later
* **Neuron Runtime:** SDK 2.18 or later
* **Prerequisites:** All prerequisites for Kubernetes containers and the Neuron Node Problem Detector must be satisfied

**Installation**

Install the Neuron Node Problem Detector and Recovery as a DaemonSet using Helm:

.. note::

    The installation pulls the container image from the upstream Node Problem Detector repository at ``registry.k8s.io/node-problem-detector``.

.. code:: bash

    helm upgrade --install neuron-helm-chart oci://public.ecr.aws/neuron/neuron-helm-chart

**Enable Node Recovery**

By default, the Neuron Node Problem Detector runs in **monitor-only mode**. To enable automatic node recovery functionality:

.. code:: bash

    helm upgrade --install neuron-helm-chart oci://public.ecr.aws/neuron/neuron-helm-chart \
        --set "npd.nodeRecovery.enabled=true"

**Verify Installation**

Verify that the Node Problem Detector pods are running:

.. code:: bash

    kubectl get pod -n neuron-healthcheck-system

Expected output (example with 4 nodes in cluster):

.. code:: bash

    NAME                          READY   STATUS    RESTARTS   AGE
    node-problem-detector-7qcrj   1/1     Running   0          59s
    node-problem-detector-j45t5   1/1     Running   0          59s
    node-problem-detector-mr2cl   1/1     Running   0          59s
    node-problem-detector-vpjtk   1/1     Running   0          59s

**Monitoring and Metrics**

When an unrecoverable error occurs, the Neuron Node Problem Detector:

* Publishes metrics to CloudWatch under the ``NeuronHealthCheck`` namespace
* Updates the node's ``NodeCondition``, which can be viewed using:

  .. code:: bash

      kubectl describe node <node-name>

.. _neuron-npd-observer:

Integrate Neuron Observer with Kubernetes NodeConditions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:ref:`Neuron Observer <neuron-observer-index>` collects Trainium accelerator and system telemetry, including device health, hardware faults, and performance metrics. Starting with Neuron 2.34, the Neuron Node Problem Detector integration automatically translates supported Neuron Observer health signals into Kubernetes NodeConditions on Amazon EKS. You can use these NodeConditions in your existing Kubernetes monitoring and recovery workflows.

.. note::

    This integration is in beta, because it depends on Neuron Observer, which is in public beta. It supports Trn2 and Trn3 instances only.

This release covers uncorrectable errors in High Bandwidth Memory (HBM) and Static RAM (SRAM). These errors cannot be recovered from, and a node that reports one should not be used. 

**Requirements**

* **Instances:** Trn2 or Trn3.
* **Neuron Driver:** the version from Neuron 2.32 or later. Earlier drivers don't report device health to Neuron Observer, so the condition stays ``Unknown``.
* **Neuron Observer:** running on the node, installed with the Neuron Helm chart. If Neuron Observer is not found when the Node Problem Detector is installed or upgraded, the integration stays off and the install still succeeds; ``NeuronHealth`` keeps working as before.

**Installation**

The Neuron Helm chart enables the Node Problem Detector by default. When the chart installs or upgrades the Node Problem Detector, it checks whether Neuron Observer is running and, if so, turns on the integration. No extra setting is needed. Install Neuron Observer only once, in one of the following ways.

*If you already run Neuron Observer*, for example as the ``neuron-observer`` release from :doc:`/tools/neuron-observer/install-configure`, which sets ``npd.enabled=false``: install or upgrade the Node Problem Detector with the command from **Installation** at the top of this page, after Neuron Observer is running. Don't set ``observer.enabled=true`` in this release.

.. code:: bash

    helm upgrade --install neuron-helm-chart oci://public.ecr.aws/neuron/neuron-helm-chart

If you installed the Node Problem Detector before Neuron Observer, run the same command again so that it finds Neuron Observer.

*If you don't run Neuron Observer yet*: install both in one release.

.. code:: bash

    helm upgrade --install neuron-helm-chart oci://public.ecr.aws/neuron/neuron-helm-chart \
        --set "observer.enabled=true" \
        --set "observer.namespace.create=true"

After the Node Problem Detector pods start, each Neuron node reports the ``NeuronMemoryUncorrectableError`` NodeCondition, with status ``False`` while no error is present.

When node recovery is enabled (``npd.nodeRecovery.enabled=true``), a node that reports ``NeuronMemoryUncorrectableError`` as ``True`` is marked as unhealthy and replaced, in the same way as for ``NeuronHealth``. When node recovery is disabled, the NodeCondition reports the error only.

**Available Neuron NodeConditions**

The following Neuron NodeConditions are available. NPD also emits a Kubernetes event on the node each time a condition changes.

.. list-table::
   :header-rows: 1
   :widths: auto

   * - NodeCondition
     - Description
     - Possible values and meanings
   * - ``NeuronHealth`` (legacy)
     - Reports errors from the existing kernel log
     - ``True``: an error was detected. ``False``: no error was detected.
   * - ``NeuronMemoryUncorrectableError`` (new in 2.34)
     - Reports uncorrectable memory errors detected by Neuron Observer
     - ``True``: an error was detected. ``False``: no error was detected. ``Unknown``: error information could not be reliably retrieved or evaluated.

.. note::

    ``NeuronHealth`` is a legacy condition and will be deprecated in a future release.

Understanding the NeuronMemoryUncorrectableError condition
-----------------------------------------------------------

``NeuronMemoryUncorrectableError`` groups supported HBM and SRAM uncorrectable memory errors under one Kubernetes condition.

Each condition includes the following fields:

.. list-table::
   :header-rows: 1
   :widths: auto

   * - Field
     - Description
     - Possible or example value
   * - Status
     - Indicates whether a supported fault was detected
     - ``True``, ``False``, ``Unknown``
   * - Reason
     - Short classification of the condition
     - ``MemoryUncorrectableError`` when ``True``; ``NeuronHasNoError`` otherwise
   * - Message
     - Provides detailed error information, affected devices, and suggested action
     - ``[HBM_UNCORRECTABLE_ERROR] HBM_UNCORRECTABLE_ERROR: device 0. Suggested action: DoNotUse``

Observer health signal to NodeCondition mapping
-----------------------------------------------

With Neuron 2.34 and later, the Node Problem Detector integration supports the following Neuron Observer signals:

.. list-table::
   :header-rows: 1
   :widths: auto

   * - Observer health signal
     - NodeCondition
     - Status when detected
   * - Unrepairable HBM uncorrectable error
     - ``NeuronMemoryUncorrectableError``
     - ``True``
   * - SRAM uncorrectable error
     - ``NeuronMemoryUncorrectableError``
     - ``True``

**Verify the NodeCondition**

.. code:: bash

    kubectl describe node <node-name>

On a healthy node, both Neuron NodeConditions appear in the ``Conditions`` section:

.. code:: text

    Conditions:
      Type                            Status  Reason            Message
      ----                            ------  ------            -------
      NeuronHealth                    False   NeuronHasNoError  Neuron has no error
      NeuronMemoryUncorrectableError  False   NeuronHasNoError  Neuron has no uncorrectable error

**Example**

An unrepairable HBM error occurs on device 1, and SRAM uncorrectable errors occur on devices 1 and 4. On the next check, the NodeCondition changes:

.. code:: bash

    kubectl get node <node-name> \
      -o jsonpath='{.status.conditions[?(@.type=="NeuronMemoryUncorrectableError")]}' | jq

.. code:: json

    {
      "type": "NeuronMemoryUncorrectableError",
      "status": "True",
      "reason": "MemoryUncorrectableError",
      "message": "[HBM_UNCORRECTABLE_ERROR, SRAM_UNCORRECTABLE_ERROR] HBM_UNCORRECTABLE_ERROR: device 1; SRAM_UNCORRECTABLE_ERROR: device 1, 4. Suggested action: DoNotUse",
      "lastTransitionTime": "2026-11-09T19:15:33Z"
    }
