Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions configs/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
# Teardown deletes the objects the ownership role labelled during install
# (roles/ownership). `teardown: role` runs the component's own teardown instead, and
# `teardown: both` runs it after the labelled objects are gone: for components that
# also change hosts. `teardown_tasks` names the role's tasks file that takes back what
# the component changed in other components' objects (the gateway's portal and routes),
# run before the labelled objects go. `ownership_declared` lists objects the component
# creates that no task result names (a Job's, a subchart's CRDs), matched by any of kind,
# namespace, name and labels. `used_by` names the components a component exists for: it is
# installed only while one of them is enabled, and torn down with them.
# also change hosts, or whose objects lose their labels. `teardown_tasks` names the
# role's tasks file that takes back what the component changed in other components'
# objects (the gateway's portal and routes), run before the labelled objects go.
# `ownership_declared` lists objects the component creates that no task result names (a
# Job's, a subchart's CRDs), matched by any of kind, namespace, name and labels. `used_by`
# names the components a component exists for: it is installed only while one of them is
# enabled, and torn down with them.
#
# Adding a component here: add an entry and create roles/<name>/.
# Adding a whole solution (its own layer, in its own repo): see
Expand Down Expand Up @@ -119,8 +120,11 @@ components:
# (infrastructure) has run before it. Planned (B2): detect vendors from NFD labels
# and drop the rack_scale gate. Not on OpenShift for now: it expects the NFD Helm
# release, and OpenShift gets NFD from its operator.
# teardown: both: the chart's pre-upgrade hook replaces its CRDs on every upgrade,
# which drops their ownership labels, so the role's teardown deletes them by name.
- name: nvidia_gpu_operator
layer: platform
teardown: both
enabled: "{{ rack_scale_enabled | default(false) | bool and cluster_distribution | default('kubernetes') != 'openshift' }}"
depends_on: [node_feature_discovery]

Expand Down
9 changes: 7 additions & 2 deletions docs/deployment/rack-scale.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,14 @@ another cluster. See
`lsblk` on each node right before deploying.
- **Healthy package state:** no half-installed or failed packages, for example
DKMS modules that do not build against the running kernel.
- **GPU nodes:** the GPU operator installs the NVIDIA driver
- **GPU nodes:** the GPU operator installs the NVIDIA driver in a container
(`nvidia_gpu_operator_driver_enabled: true`) or uses a driver already
installed on the host, which it detects. On HGX systems with a host driver,
NVIDIA Fabric Manager must also be installed and running on the host.
The host driver with `nvidia_gpu_operator_driver_enabled: false` is the
hardened option: no driver container runs privileged on the GPU nodes with
the compiler and kernel headers it builds the driver with, and the driver
gets its fixes from the host's package updates.

---

Expand Down Expand Up @@ -533,8 +537,9 @@ racks:
**What happens automatically:**
- Parser detects `accelerator:` → sets `rack_scale_gpu_vendor=nvidia`
- `node_feature_discovery`, first in the platform layer, installs the cluster's one NFD (release `node-feature-discovery` in namespace `node-feature-discovery`). It does this on every cluster, rack-scale or not, with or without GPUs, and the inference layer's `nfd` component is left out of install, validate and teardown; `nfd_enabled: false` turns NFD off
- `nvidia_gpu_operator` role installs the NVIDIA GPU operator without the chart's bundled NFD (NVIDIA only; other vendors log a warning and get no stack from this role)
- `nvidia_gpu_operator` role installs the NVIDIA GPU operator v26.7.3 (driver 595.91.07) without the chart's bundled NFD (NVIDIA only; other vendors log a warning and get no stack from this role)
- Both are platform components: `teardown inference` keeps them, `teardown platform` removes the GPU operator and NFD, and with NFD the node labels it set. On OpenShift the GPU operator and `gpu_observability` are not installed for now
- `install platform` from a newer release upgrades the GPU operator, and the chart's upgrade hook updates its ClusterPolicy, NVIDIADriver and GPUCluster CRDs. With the driver container (`nvidia_gpu_operator_driver_enabled: true`), the operator then replaces the driver one GPU node at a time, deleting the GPU pods on that node first; their controllers recreate them. The DCGM exporter of v26.7.3 labels its series `hostname` (`Hostname` before), so the GPU dashboard shows no data from before the upgrade.
- Node labels applied: `gpu-vendor=nvidia`, `gpu-model=b300`, `gpu-form=hgx`, `gpu-count=8` (and `cpu-gen` / `cpu-sku` from `node_family` / `sku`)
- These labels describe the hardware for you and your tools. GPU model pods are placed by their `nvidia.com/gpu` request, which the GPU operator makes the node advertise

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/adding-solutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ components:
| `layer` | yes | Your layer, or an existing one you're extending. |
| `depends_on` | yes (may be `[]`) | Component names. Only names **in the same layer** set the order; see below. |
| `enabled` | no (default `true`) | `true`/`false`, or a Jinja expression rendering to one. |
| `teardown` | no (default `labels`) | `labels`: delete what install labelled (see [Ownership labels](#ownership-labels)). `role`: run the role's `teardown.yaml` instead. `both`: delete by label, then run `teardown.yaml`, for components that also change hosts. |
| `teardown` | no (default `labels`) | `labels`: delete what install labelled (see [Ownership labels](#ownership-labels)). `role`: run the role's `teardown.yaml` instead. `both`: delete by label, then run `teardown.yaml`, for components that also change hosts, or whose objects lose their labels. |
| `teardown_tasks` | no | With `teardown: labels`, a tasks file of the role that runs before the labelled objects are deleted, to take back what the component changed in other components' objects (its portal entry and path on the gateway). The role needs `vars/<cluster_distribution>.yaml`. |
| `used_by` | no | Component names, any layer, for a component that exists only to serve them. It is installed only while one of them is enabled, and tearing them down takes it along, unless one outside that teardown is still enabled (preflight prints `Kept: …`). Names not in the registry are ignored. |

Expand Down Expand Up @@ -302,7 +302,7 @@ roles/<name>/
| File | Required | Contract |
|---|---|---|
| `tasks/install.yaml` | yes | Idempotent - a second run with no config change reports zero `changed`. |
| `tasks/teardown.yaml` | yes | Runs only with `teardown: role` or `both`. Removes what labels cannot: host changes, changes other than labels to objects that existed before. Succeeds when nothing is installed. |
| `tasks/teardown.yaml` | yes | Runs only with `teardown: role` or `both`. Removes what labels cannot: host changes, changes other than labels to objects that existed before, and objects that lose their labels (CRDs a chart hook replaces). Succeeds when nothing is installed. |
| `tasks/validate.yaml` | yes | Read-only; never mutates the cluster. |
| `vars/kubernetes.yaml`, `vars/openshift.yaml` | no | Both or neither, with the same keys. Literal values, named `_<name>_*`: `include_vars` keeps them for the rest of the play. A role without them has no `Load` step in its dispatcher. |
| `defaults/main.yaml` | yes | Every variable the role reads, flat-named, with a working default. |
Expand Down
26 changes: 13 additions & 13 deletions roles/gpu_observability/files/gpu-alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ spec:
labels:
severity: warning
annotations:
summary: "GPU {{ $labels.gpu }} on {{ $labels.Hostname }} has < 2 GiB memory free"
summary: "GPU {{ $labels.gpu }} on {{ $labels.hostname }} has < 2 GiB memory free"
description: >-
GPU {{ $labels.gpu }} ({{ $labels.modelName }}) on host
{{ $labels.Hostname }} has had {{ $value }} MiB of framebuffer
{{ $labels.hostname }} has had {{ $value }} MiB of framebuffer
memory free for over 5 minutes. Serving pod:
{{ $labels.namespace }}/{{ $labels.pod }}.

Expand All @@ -47,10 +47,10 @@ spec:
labels:
severity: warning
annotations:
summary: "GPU {{ $labels.gpu }} on {{ $labels.Hostname }} temp > 80C"
summary: "GPU {{ $labels.gpu }} on {{ $labels.hostname }} temp > 80C"
description: >-
GPU {{ $labels.gpu }} ({{ $labels.modelName }}) on host
{{ $labels.Hostname }} has run at {{ $value }}C (> 80C) for over
{{ $labels.hostname }} has run at {{ $value }}C (> 80C) for over
5 minutes and is likely thermally throttling.

# Any double-bit ECC error is uncorrectable and indicates hardware
Expand All @@ -61,23 +61,23 @@ spec:
labels:
severity: warning
annotations:
summary: "GPU {{ $labels.gpu }} on {{ $labels.Hostname }} ECC double-bit error"
summary: "GPU {{ $labels.gpu }} on {{ $labels.hostname }} ECC double-bit error"
description: >-
GPU {{ $labels.gpu }} ({{ $labels.modelName }}) on host
{{ $labels.Hostname }} recorded new double-bit ECC errors in the last
{{ $labels.hostname }} recorded new double-bit ECC errors in the last
5 minutes. DBE errors are uncorrectable and indicate hardware degradation
requiring investigation.

# Sustained non-zero throttle bitmask means clocks are being held below
# boost frequency, silently reducing inference throughput.
# The count is per 5-minute window, so 10 minutes means sustained throttling.
# Power-cap events are normal at full load: the dashboard shows them.
- alert: GPUThrottling
expr: DCGM_FI_DEV_CLOCK_THROTTLE_REASONS > 0
for: 5m
expr: DCGM_EXP_CLOCK_EVENTS_COUNT{clock_event=~"hw_slowdown|sw_thermal|hw_thermal|hw_power_brake"} > 0
for: 10m
labels:
severity: warning
annotations:
summary: "GPU {{ $labels.gpu }} on {{ $labels.Hostname }} is clock-throttling"
summary: "GPU {{ $labels.gpu }} on {{ $labels.hostname }} is clock-throttling"
description: >-
GPU {{ $labels.gpu }} ({{ $labels.modelName }}) on host
{{ $labels.Hostname }} has been clock-throttling (reasons bitmask:
{{ $value }}) for over 5 minutes, reducing inference throughput.
{{ $labels.hostname }} has been clock-throttling ({{ $labels.clock_event }})
for over 10 minutes, reducing inference throughput.
Loading
Loading