Use Shadow Mode#
Use global Shadow Mode to observe the settings DPS calculates for your power policies and GPU control-loop updates without applying those settings to hardware. This guide covers a configured DPS deployment; use Deployment and Configuration Guide for initial installation.
What Changes in Shadow Mode#
Activity |
Global Shadow Behavior |
|---|---|
Topology, resource-group, and supported policy operations |
DPS validates requests, calculates allocations, and records settings. Supported power-setting operations are acknowledged without changing hardware limits. |
GPU control-loop updates |
The controller can continue sending calculated limits to DPS, which processes them without applying them to hardware. |
Device reads and telemetry |
Required reads continue. Usage reflects the real workload under the existing hardware limits, not simulated consumption at the calculated settings. |
Release and cleanup |
Logical cleanup runs; its power-setting operations remain in Shadow Mode. |
Automatic excursion detection, mitigation, and associated alerts are disabled, as is Agent power-compliance evaluation. A resource group’s DPM flag does not re-enable these behaviors. Ordinary validation and connectivity errors can still be reported.
Shadow Mode applies to the whole deployment, not an individual resource group. It adds no device or policy support and does not prevent other controllers from changing hardware. Observed power can exceed a calculated allocation. Use the mode to inspect calculations and operation results, not to measure the power savings or performance of limits that have not been applied.
Before You Start#
Use matching server, Agent, chart, and
dpsctlversions that support global Shadow Mode. Authenticatedpsctlto the intended deployment.Confirm the selected nodes’ models, Agent assignments, BMC access, and topology. Refer to Managing Topologies and Credentials and Secrets Configuration.
A separate evaluation deployment and read-only BMC accounts are recommended when trying new configurations. Verify the effective account’s role and required reads; a successful read does not establish read-only privileges.
Plan the mode change across the server and all serving Agents. Finish in-flight operations and wait for the rollout before submitting more work.
Enable and Confirm the Mode#
Update the Deployment Configuration#
Add this override to the values for the intended deployment, for example in
shadow-values.yaml:
global:
shadowMode:
mode: global
The chart accepts off or global and defaults to off. It passes the value
as DPS_SHADOW_MODE to the server and chart-managed Agents. Changing the mode
restarts those Pods. For a new evaluation deployment, include the override
in the initial installation described by the deployment guide.
For an existing Helm release named dps, apply the override together with
all values files and overrides from your normal upgrade procedure; the
filenames below are examples. Set DPS_NAMESPACE to that release’s namespace and
DPS_RELEASE to the matching chart version. Replace the release name if yours
differs:
helm upgrade dps ngc/dps \
--namespace "${DPS_NAMESPACE}" --version "${DPS_RELEASE}" \
--values dps-site-values.yaml --values shadow-values.yaml \
--wait --timeout 15m
Keep the deployment’s TLS, authentication, storage, and credential settings in
its site values. When using per-node BMC Secrets, each topology node’s
Redfish.SecretName must select the intended Secret in the namespace. Leave
dps.redfish.auth.credentialsOverrideSecretName empty for that configuration;
a release-wide override takes precedence over per-node Secrets.
For processes started outside Helm, set DPS_SHADOW_MODE=global on the server
and every serving Agent, or add --shadow-mode global to their usual startup
arguments. The explicit flag overrides the environment variable. Mode is
selected at startup and cannot be changed with dpsctl settings update.
Keep the GPU Controller Connected#
Keep your GPU control-loop integration enabled if you want to observe its allocations. In the deployment values, use:
dps:
prs:
enabled: true
power-steering:
enabled: true
controller:
cluster:
shadowMode: false
The controller’s shadowMode is a separate dry run that logs calculated
limits without sending them to its backend. Leave it false so updates reach
DPS; DPS global Shadow Mode suppresses the hardware writes. Apply these values
with the mode override when updating the deployment.
Enable the global prs_enabled setting and the GPU control loop for the
resource group. Use the release-specific DPS gRPC Service and compatible
TLS/authentication settings from
Deployment and Configuration.
Check the Running Server and Agents#
Use the actual workload names if your release overrides them:
kubectl --namespace "${DPS_NAMESPACE}" rollout status statefulset/dps-server
kubectl --namespace "${DPS_NAMESPACE}" rollout status deployment/dps-server-agent
kubectl --namespace "${DPS_NAMESPACE}" get \
statefulset/dps-server deployment/dps-server-agent -o yaml
dpsctl --version
dpsctl -o json server-version
dpsctl -o json agent list
Confirm the expected images, ready Pods, and connected Agents. Every serving
process must resolve to DPS_SHADOW_MODE=global, with no conflicting startup
flag. The dashboard reports the server’s mode; check Agent configuration
separately. Do not submit operations while the deployment mixes modes.
Use Your Policy and Resource-Group Workflow#
Use the normal operations for the selected topology, resource groups, and policy bundles. You do not need a special GPU count or a manual GPU request to use Shadow Mode.
Your Task |
Procedure and Expected Result |
|---|---|
Observe a policy’s allocation |
Follow Managing Topologies or Managing Resource Groups to activate the intended topology/group or perform a supported change. Check completion and per-node results; DPS calculates settings while hardware limits remain unchanged. |
Observe the GPU control loop |
Keep the control loop enabled for an active group with resolvable policies and usable telemetry. Check the controller’s cycles and resulting DPS updates using Control-Loop Telemetry. A controller in its own dry-run mode sends no updates. |
Inspect a specific per-GPU request |
Use dpsctl gpu-policy on a node in an active resource group. The optional example demonstrates one fixed target. Model bounds and allocation budgets still apply. |
Wait for each operation to complete before a dependent change. Acceptance means DPS processed the request, not that hardware applied it. Inspect partial failures and accepted values rather than assuming every requested value was accepted unchanged.
On a new deployment, importing a topology does not establish node routing to an Agent. Activate the topology before using DPS device reads. If you need a hardware baseline from before that activation, use the platform’s supported direct Redfish read.
Observe Calculated Settings and Hardware Values#
For a selected node, compare the ordinary and effective responses:
dpsctl -o json check metrics --nodes "<node-name>"
dpsctl -o json check metrics --nodes "<node-name>" --effective
Quantity |
Where to Look |
Meaning |
|---|---|---|
Allocated power |
Provisioned; |
The allocation calculated by DPS, not measured consumption. |
DPS setting |
Request results, ordinary |
The commanded value; it is not evidence of a hardware change. |
Device-reported limit |
Effective reads and |
A reading from the configured source. Confirm that it represents the enforced limit for the selected platform. |
Measured usage |
|
Real usage from the configured telemetry source. |
reported_set_limit preserves the source value before DPS overlays a saved
target. --effective requests current limits through the supported device
read path. Missing source limits may be filled from saved state in
set_limit, so that field alone does not establish a hardware reading.
Compare fresh per-component values from the same node and time window.
For dashboard import, queries, and formulas, follow DPS Sample Dashboards. In DPS Power Limits, select the intended datasource, namespace, release, power domain, resource group, node, and time window. Check the status panel for the expected active topology and global Shadow mode; active topology is a status display, not a filter.
A missing Current series is unavailable data, not zero hardware limits. Inspect per-component device readings before interpreting a total, and do not substitute the DPS set point for a missing device limit. A successful direct read does not establish that the periodic collector exports that value. Possible power-limit reduction estimates lower limits, not measured energy savings.
The server reports dps_shadow_mode{shadow_mode="global"} as 1 in global
mode, with the off series at 0. This does not establish Agent readiness or
BMC privileges. A missing series is not proof that the mode is off.
Clean Up and Return to Normal Mode#
Keep global Shadow Mode active while completing the intended logical cleanup. Remove only evaluation resources that you own; an existing operational topology or resource group does not need to be deleted just to finish observing it. Follow Managing Resource Groups and Managing Topologies for the applicable release and deletion operations.
Save dashboard exports and required diagnostics before removing resources. Take DPS effective readings while the topology still routes the selected nodes. After topology cleanup, use the validated direct device-reading path for a final hardware check; a blank panel is not a device reading. Unchanged before/after limits establish observed values, not an audit of every attempted BMC request.
DPS saves GPU targets across server and Agent restarts. After a restart,
recheck modes, connectivity, and fresh readings. To return to Normal, review
the policies and resources that should control the hardware, set the startup
mode to off, and wait for both rollouts. Normal operations require credentials
that permit their intended writes. Verify actual limits after the intended
Normal policy operation; restarting alone is not a way to discard saved GPU
targets.
Troubleshooting#
Symptom |
Next Action |
|---|---|
Startup rejects the mode |
Use exactly |
Server reports global but an operation fails |
Check Agent version, mode, assignments and connection, then the per-node error. |
Reads fail with a read-only account |
Verify required BMC read access and effective Secret selection, including credential overrides. |
A policy or GPU request fails or changes the target |
Check active membership, model bounds, GPU count where applicable, and allocation budgets. |
The GPU controller sends no updates |
Check both integrations, the global and resource-group control-loop settings, telemetry, and controller connectivity. Keep the controller’s |
Usage exceeds the allocation without an excursion response |
Global Shadow does not enforce the calculated limit or run automatic excursion actions. Check the hardware limits and workload separately. |
Current is missing or differs from the DPS setting |
Inspect per-component effective readings; do not substitute calculated targets for missing device limits. |
A hardware limit changes |
Verify every serving process is global and check for other controllers or direct BMC operations in the same interval. |
Refer to Troubleshooting for further diagnosis. Keep request responses, device readings, and dashboard observations distinct when reporting a problem.
Optional Example: Inspect a Manual GPU Target#
Use this example when you want a fixed request to compare with hardware
readings. Its eight-GPU node and 400 W target are example inputs, not
requirements for Shadow Mode. The example does not exercise GPU control-loop allocation.
Complete mode setup and verification first. For
this example, use an imported, inactive topology named shadow-topology in
an evaluation deployment with no other active topology. It contains one
node, node001, with eight GPUs that each support 400 W. The MaxP bundle
and topology budget must accommodate all eight targets and the node’s other
components. Replace the names and values for your environment, and choose
an unused group name and external ID.
Activate the Topology and Save a Baseline#
dpsctl -o json topology activate --topology shadow-topology
dpsctl -o json topology list
dpsctl -o json check metrics --nodes node001 --effective > shadow-before.json
Wait for activation to complete before the read. Require fresh, valid hardware-limit readings for all eight GPUs; resolve missing reads or use the supported direct device path before continuing. This baseline covers the following group and GPU operations. To compare topology activation itself, take a direct device reading before activation.
Create the Group and Submit the Request#
dpsctl -o json resource-group create \
--resource-group shadow-example --external-id 2924001 \
--policy-bundle MaxP --shared-gpu-enable=false --prs-enabled=false
dpsctl -o json resource-group add \
--resource-group shadow-example --entities node001
dpsctl -o json resource-group activate \
--resource-group shadow-example --sync
dpsctl -o json resource-group list
dpsctl -o json check status --nodes node001
Complete each operation before its dependent step. Confirm the group is active
and contains node001. The example disables the control loop only for this
group to keep controller updates from replacing the manual target. Non-shared
GPU mode selects a per-node GPU budget.
dpsctl -o json gpu-policy \
--node "node001=400,400,400,400,400,400,400,400" > shadow-setting.json
For this request, gpu_policy_update_status.completed must be true with a
successful final status. Expect one successful results entry per GPU, each
with ok: true and set_limit: 400, given the stated model and budget.
Inspect any diagnostic or changed value instead of assuming success.
A client timeout can return status.ok: true with an in-progress diagnostic;
that is not completion. Retain task_id, inspect
dpsctl task list and server diagnostics, and
establish the outcome before retrying. The
GPU-policy reference covers command usage.
Observe and Clean Up#
dpsctl -o json check metrics --nodes node001 > shadow-targets.json
dpsctl -o json check metrics --nodes node001 --effective > shadow-after.json
The ordinary read should show the accepted 400 W targets. Validated
hardware limits should match shadow-before.json; measured usage reflects
the current workload. If the hardware baseline is already 400 W, choose
another supported target to make the distinction visible. Follow
Observe Calculated Settings and Hardware Values
for the corresponding dashboard comparison.
Use the shared cleanup guidance, deleting only this example’s resources while still in global Shadow Mode:
dpsctl -o json resource-group delete --resource-group shadow-example
dpsctl -o json resource-group list
dpsctl -o json check status --nodes node001
dpsctl -o json check metrics --nodes node001 --effective > shadow-after-rg-cleanup.json
Confirm the group is absent and the node is released. If the example owns the topology, also deactivate and remove it:
dpsctl -o json topology deactivate --topology shadow-topology
dpsctl -o json topology remove --topology shadow-topology
dpsctl -o json topology list
Retain the final direct device reading after topology cleanup. Use the shared lifecycle guidance if you intend to return the deployment to Normal mode.