← Back to Pull requests

fix(gpu-health-monitor): add is_fatal and processing_strategy labels to active events, suppress NVLink BER codes #1994

Closed
unknown closed this pull request without merging on Oct 12, 2026 10:26 UTC
View on GitHub
unknown unknown commented on Oct 08, 2026 11:49 UTC
Author

Summary

Two gpu-health-monitor changes from the DCGM 4.7 rollout. Refs #1990, #1944.

1. is_fatal and processing_strategy labels on dcgm_health_active_events (#1990)

On DCGM 4.7, DCGM_FR_NVLINK_ERROR_CRITICAL (71) is raised from the since-boot "link recovery successful" counter and stays active until the node reboots. The code maps to NONE, so no node is cordoned. But dcgm_health_active_events shows these as standing NVLink errors, and alerts cannot tell them apart from fatal events.

  • Adds an is_fatal label ("true" / "false") to dcgm_health_active_events. It uses the same rule as the event's isFatal: the recommendedAction in dcgmerrorsmapping.csv is not NONE.

  • The value comes from the error code, not the event, so the series that a failure sets and the series that its recovery zeroes always have the same labels.

  • Connectivity-failure and DCGM-unresponsive series always use is_fatal="true", because gpu-health-monitor always sends those events with isFatal=True.

  • Adds a processing_strategy label. Its value is the ProcessingStrategy enum name that gpu-health-monitor sends with the event, for example EXECUTE_REMEDIATION or STORE_ONLY. It uses the effective strategy, so the per-check store-only checks (GpuThermalMarginWatch, GpuPowerBrakeWatch, GpuDcgmUnresponsive) show STORE_ONLY even when the global strategy is EXECUTE_REMEDIATION.

  • A recovery zeroes the same processing_strategy series that the failure set, even if the strategy config changed in between.

  • Like is_fatal, processing_strategy shows what gpu-health-monitor sends, not the final decision. For example, platform-connectors can still change the strategy to STORE_ONLY on a node with nvsentinel.dgxc.nvidia.com/managed=false.
  • Alerts can use dcgm_health_active_events{is_fatal="true"} to skip informational events, and processing_strategy to skip events that NVSentinel only stores. The DCGM behaviour is tracked in NVIDIA/DCGM#318.

    2. Suppress the NVLink BER codes by default (#1944)

    DCGM 4.7.0 removed the NVLink BER health and diagnostic checks because they failed healthy GPUs (release notes). Older hostengines still report them. They map to CONTACT_SUPPORT, so the default quarantine policy cordons the node.

  • Adds DCGM_FR_NVLINK_EFFECTIVE_BER_THRESHOLD (119) and DCGM_FR_NVLINK_SYMBOL_BER_THRESHOLD (121) to the default gpu-health-monitor.dcgmHealthCheck.suppressedErrorCodes in the chart values.yaml and in values-full.yaml.

  • On DCGM 4.7 and newer this has no effect. On older hostengines it gives the same behaviour as 4.7.

  • The docs explain the cost: a truly high BER also produces no health event. To alert on BER, use the DCGM fields DCGM_FI_DEV_NVLINK_SYMBOL_BER_RATIO (1216) and DCGM_FI_DEV_NVLINK_EFFECTIVE_BER_RATIO (1218) with a threshold from your hardware vendor. A custom suppressedErrorCodes list replaces the default list.

  • Testing

  • New tests: test_active_events_metric_is_fatal_matches_sent_event and test_connectivity_failure_active_events_metric_is_fatal.

  • The gpu-health-monitor unit tests and Black pass (Python 3.13).

  • helm template renders the six default codes from the chart and from values-full.yaml, and an empty list with suppressedErrorCodes: [].
  • Type of Change


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Health Monitor

  • Core Service

  • Fault Management

  • Janitor

  • Deployment/Config

  • API/Interface

  • Preflight

  • Plugins

  • Documentation/CI

  • New Component

  • Multiple Components

  • Other
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • Checklist


  • Self-review completed

  • Documentation updated (if needed)

  • Ready for review
  • Testing:-

    Must-have tests

    | # | Test | Expected result | Result |
    |---|---|---|---|
    | 1 | Inject a FAIL code that maps to an action: XID 95, RESTART_VM. | The label is is_fatal="true". The event has isFatal=true. | Pass |
    | 2 | Inject a FAIL code that maps to NONE: XID 48. | The label is is_fatal="false". The label follows the CSV action, not the DCGM severity. | Pass |
    | 3 | Inject a WARN code that maps to an action: InfoROM invalid, COMPONENT_RESET. | The label is is_fatal="true". | Pass |
    | 4 | Set a true code and a false code on one watch: pending page retirement and XID 43. Then clear the true code. | The cleared series goes to 0. The other series stays at 1. | Pass |
    | 5 | Change the DCGM version while codes are active. This restarts the DCGM hostengine. | The connectivity series goes to true, then to 0. Each GPU series goes to 0 with its own label. No series stays at 1. | Pass |
    | 6 | Change the CSV mapping, then restart GHM. | The label changes with the CSV. A missing row and an invalid value both give true, because GHM uses CONTACT_SUPPORT as the default. | Pass |
    | 7 | Inject NVLink BER on fields 1215 and 1217, on DCGM 4.5.3, 4.6.1 and 4.7.0. | DCGM 4.5.3 and 4.6.1 report FAIL. GHM sends no event and sets no series. dcgm_health_check_suppressed_incidents_total increases. DCGM 4.7.0 reports healthy. | Pass |

    In every test, the label value is the same as the event isFatal value.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Summary

    New Features
    Active GPU health-event metrics now include is_fatal and processing_strategy labels, showing each event’s fatality and handling strategy.
    Bug Fixes
    NVLink BER threshold errors reported by older DCGM host engines are suppressed by default. Custom suppression lists replace the defaults.
    Documentation
    Clarified that suppressing BER threshold errors also hides genuine high-BER events, while other NVLink watch codes remain reportable. Disabling suppression restores reporting of BER and throttling events. STORE_ONLY events trigger no module action.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: lalitadithya Review duration: 5676m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1994"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%