This document is relevant for: Trn2, Trn3
Health check: Neuron Observer#
Overview#
The active health check is an on-demand hardware diagnostic that the Neuron Observer daemon executes on a single node. The daemon loads reference Neuron Executable File Format (NEFF) programs onto the node’s NeuronCores, executes them through the Neuron Runtime, and compares the output tensors with known values. A passing result indicates that the Neuron driver, the Neuron Runtime, and every visible NeuronCore completed these reference computations correctly at the time of the check.
Typical use cases include validating a node before workload placement, after a Neuron driver installation or upgrade, and after a hardware fault event.
The health check executes only when a client requests it. It is independent of the passive device health state (healthy, unhealthy, unknown) that the daemon derives from the Neuron driver. For the passive health states, see Reference: Neuron Observer metrics and faults.
Note
Neuron Observer is in public beta. The health check API, test names, and failure reasons are subject to change before general availability.
Prerequisites#
All NeuronCores on the node are idle. The check occupies every visible NeuronCore, so execute it only when no workload is running on the node.
Invoking the health check#
Invoke the health check through the nobs CLI in the daemon pod:
kubectl exec -n neuron-observer <pod> -- nobs health run
nobs health run starts a check, polls the daemon until the check completes, and prints the result. The command exits with status code 0 only when the outcome is passed.
Command |
Description |
|---|---|
|
Executes a single test. Valid values for |
|
Returns the state and result of the most recent check without starting a new one. |
|
Returns the standard output and standard error captured from the most recent check. |
The daemon API exposes the same operations. For parameters, responses, and status codes, see the API reference.
Request |
Description |
|---|---|
Starts a check. |
|
Returns the state and result of the most recent check. |
The daemon executes at most one check at a time and retains only the most recent result. A check needs exclusive access to every NeuronCore on the node, so it does not start while another process holds a NeuronCore or while a check is already in progress.
Test suite#
The daemon executes the following tests sequentially, each in a dedicated subprocess.
Test |
Validation |
|---|---|
|
Executes a small matrix multiplication concurrently on every visible Logical NeuronCore (LNC). Each LNC passes when its output matches the reference values within a tolerance of 1e-3. |
|
Executes an all-reduce collective across every visible NeuronCore over NeuronLink. Each rank passes when its output equals the expected sum exactly. |
|
Executes the same all-reduce collective with inter-rank traffic routed through the node’s Elastic Fabric Adapter (EFA) devices. The daemon skips this test on nodes without an EFA device. |
The daemon skips both collective tests on devices earlier than NeuronCore v3, and when fewer than two NeuronCores are visible.
A single time limit applies to the complete test suite. The default is 90 seconds, configurable through the Helm value observer.daemon.config.healthcheck.timeout_secs. Because nobs health run stops polling after 120 seconds, configure a time limit below that value.
Outcomes#
A completed check reports results at two levels: an overall outcome for the check, and a status for each test in the tests array. The daemon derives the overall outcome from the statuses of the tests that executed.
Outcome |
Definition |
|---|---|
|
Every test that executed passed. Tests with the status |
|
At least one executed test failed. The |
The health check has no distinct timeout outcome. When the time limit expires, the daemon terminates the test in progress, reports the outcome failed with the reason timeout, and marks every test that had not started as skipped.
Each entry in tests reports the status of one test:
Status |
Definition |
|---|---|
|
The test executed, and every LNC or rank produced the expected output. |
|
The test executed, and at least one LNC or rank failed, or the test produced no result. The |
|
The test did not execute. The |
Failure reasons#
Reason |
Definition |
|---|---|
|
A test did not complete within the remaining time limit, and the daemon terminated it. Possible causes include degraded hardware, a stalled Neuron Runtime operation, or a time limit that is insufficient for the instance type. |
|
The Neuron Runtime could not acquire the NeuronCores or a runtime resource that the test requires, for example because another process acquired a NeuronCore after the check started. Retry the check when no other process holds NeuronCores. |
|
The |
|
A collective test failed on at least one rank, because the reduced output was incorrect or the Neuron Runtime reported a collective or hardware error. |
|
The test subprocess could not set up the test, for example because Neuron Runtime initialization failed or no NeuronCores were visible. |
|
The test subprocess terminated without emitting a result, for example because it exited abnormally. |
To diagnose a failure, inspect the detail field of the failed test and the logs returned by nobs health logs.
Scope of a passing result#
A passing result establishes the following conditions at the time of the check:
The Neuron Runtime initialized against the installed Neuron driver.
Every visible LNC loaded the reference program, executed it, and returned correct results.
Every visible NeuronCore exchanged data over NeuronLink and produced the correct all-reduce sum, on NeuronCore v3 or later with at least two NeuronCores.
The all-reduce collective completed with traffic routed through EFA, on nodes with an EFA device.
A passing result does not establish the following:
Continued health after the check completes. The check is a point-in-time measurement and retains no history.
Workload compatibility or performance. The reference programs are small and do not exercise model-scale memory use, sustained load, or performance characteristics.
Device memory stress testing. Neuron Runtime initialization scrubs the device’s high-bandwidth memory (HBM), but the tests themselves read and write only a small amount of memory on each NeuronCore and do not stress device memory beyond that scrub.
Connectivity to other nodes or the broader network fabric. The EFA test sends its traffic out through the node’s EFA devices, but every rank runs on the same node, so the test does not communicate with other nodes.
Absence of hardware faults. A fault that does not affect the reference programs, or that occurs after the check, remains undetected by this check. Use the passive device health state and fault events to detect such faults.
Limitations#
The check occupies every visible NeuronCore.
A check in which every test is skipped reports the outcome
passed, although no hardware validation occurred. When you use--test, verify the status of the selected test.A single time limit applies to the complete suite. A slow test can exhaust the limit and cause subsequent tests to be skipped.
The daemon retains only the most recent result, in memory. A daemon restart discards the result, and a check in progress during a daemon shutdown produces no result.
The daemon does not export health check results as metrics or events. Retrieve results through
nobsor the daemon API.Each check validates a single node. To validate a cluster, execute the check on each node.