Search Deployment Configurations with DGDR v1beta2
Run an AISimulate-backed deployment search, inspect immutable runs and candidates, and create a DynamoGraphDeployment from a result
DynamoGraphDeploymentRequest (DGDR) v1beta2 uses AISimulate to evaluate deployment
configurations without creating one Kubernetes resource per optimizer trial. A mutable Request
creates immutable DynamoGraphDeploymentRun resources. Each Run publishes a bounded set of
immutable DynamoGraphDeploymentCandidate (DGDC) resources.
Each Candidate represents one evaluated point. Its spec contains the unpruned
DynamoGraphDeployment (DGD) spec. Its status contains the resolved evaluation parameters,
evaluation metrics, and a Valid condition. Choose a valid result and copy its spec into an
independent DGD.
DGDR v1beta2 is available without a feature gate but is not feature complete. This guide covers static and recorded-trace workloads, scalar and Pareto optimization, DGD overrides, and manual Candidate-to-DGD creation.
To run a recommendation outside the operator and export deployment files directly, see Generate a DGD with AISim.
Prerequisites
Install the operator and matching DGDR v1beta2 CRDs as described in the
installation guide. The API is available without an API
feature gate. Installations with dynamo-operator.upgradeCRD=false require an administrator to
install the matching CRDs before upgrading the operator.
Planner live retune remains a separate, disabled-by-default feature with its existing opt-ins. It is not required for a manually submitted search. See Planner Live Retune.
The operator selects the planner image configured by its Helm release. Requests and Runs cannot select a different AISimulate image or version.
Helm also supplies the matching operator image for the Run publisher. With a custom operator
command, set --operator-image before preparing new Run executions. Omitting it does not prevent
manager startup; see v1beta2 availability.
Create a Search
The following Request pins the hardware topology, so admission does not need cluster discovery:
Admission supplies the omitted stable defaults. The accepted Request is equivalent to this shape:
Apply the Request and wait for admission and the Request controller to accept it:
The Request reports the active immutable Run:
The exact generated name can differ when the Request name needs truncation.
Adjust the Search
Set spec.backends to choose from vllm, sglang, and trtllm; omission searches all three.
Explicit hardware values pin the SKU, GPU budget, and node width. Omit hardware to use cluster
discovery. Explicit empty hardware and static-workload objects opt out of their typed defaults;
use the DGDR API reference
when supplying those inputs through AISimulate overrides.
For static traffic, choose exactly one of requestsPerSecond, concurrency, or
kvCapacityFraction under spec.workload.static.load. The following fragment uses an open-loop
arrival rate and keeps up to five published Candidates:
maxCandidates defaults to 1, accepts 1 through 100, and bounds published Candidates rather than
internal optimizer trials. Optimize uses one scalar metric; Goodput and GoodputPerGPU require
at least one SLA bound. See the objective
reference for metrics and SLA
combinations.
For a Pareto search, set mode: Pareto. The supported objectives are ThroughputPerGPU and
ThroughputPerUser; omitting metrics selects that pair. When switching an existing scalar
Request, remove its metric in the same update:
Pareto Candidates represent trade-offs between the two objectives. Choose a point that meets your workload requirements; there is no single best Candidate across both objectives.
Replay a Recorded Trace
To evaluate recorded traffic instead of synthetic load, use a completed Dynamo request trace on a PersistentVolumeClaim (PVC) in the Request namespace:
Dynamo is the only typed trace format, and a PVC is the only typed trace source. The file must
be complete, readable by the Run Job, and immutable before the Request is created. JSON Lines and
gzip-compressed JSON Lines are supported. The operator mounts only that file, read-only, into the
AISimulate container. 1.0 preserves recorded arrival times; a larger speedup replays arrivals faster.
workload.static and workload.trace are mutually exclusive. When changing an existing Request
from static traffic to a trace, set workload.static: null in the same update. No static traffic
default is added to a trace workload. See the trace source and claim lifecycle
reference
for file permissions, PVC access modes, deletion, and input-override behavior.
Override Native AISimulate Input
Use spec.aisim.inputOverrides for supported AISimulate input that is not part of the stable
typed API:
The object uses the upstream AISimulate field names, including snake_case. The operator applies
it as an RFC 7386 JSON Merge Patch over the typed lowering. Override values win; JSON null deletes
a lowered field.
The effective input is assembled in this order:
Admission rejects overrides of dgdr_run.name, max_candidates, snapshot_dir, runtime_image,
runtime_version_override, derive_runtime_images, num_gpus_per_node, namespace, is_pareto,
and pareto_objectives. These
values define the Run identity, trust boundary, and transport.
Request and Run creation validate the merged input against the bundled AISimulate input schema. Request spec changes are validated again; unchanged specs remain metadata-updatable after a bundled schema change. Adapter-owned configuration and Python-only constraints are checked by AISimulate at execution time. The operator validates DGD overrides independently of AISimulate input. Use the AISimulate Sweeper configuration that matches the operator release.
Customize the Candidate DGD
Add one partial nvidia.com/v1beta1 DGD under spec.overrides.dgd to customize every selected
Candidate independently. For example, add a scheduling constraint to the generated Frontend:
The publisher applies the override atomically using DGD Server-Side Apply merge rules. Components
must already exist; named containers can be added. Atomic lists, including container command and
args, replace the generated list. A failed merge preserves the original generated spec. A
successful merge is checked with strict server-side dry-run; its defaulted response is discarded.
The Candidate’s Valid condition records the result.
Overrides can change deployment configuration, but AISimulate does not reevaluate it. Metrics and parameters continue to describe the original evaluation. For supported merge directives, metadata restrictions, and invalid-result diagnostics, see v1beta2 DGD Overrides.
Monitor the Run
Resolve the active Run from the Request:
The Run spec is an immutable, fully defaulted copy of the accepted Request spec. The Run controller
lowers that snapshot exactly once, writes the effective input to an immutable Run-owned ConfigMap,
and reports the same public input at status.aisim.input.
While execution is active, an abridged status resembles:
The publisher updates ordered candidateRefs, progress.candidates.published, the publication
condition, and coarse progress time. Pareto searches also report progress.candidates.paretoFront,
which can exceed the number of published Candidates when maxCandidates bounds the projection.
Per-branch rounds and detailed evaluation counters are reserved
in the API but are not currently populated from the snapshot; their absence is not a failed search.
Treat status.aisim.input as the authoritative record of what the Job received. For a native
static workload, lowering also sets traffic.stop.requests to 1000. It independently defaults
optimizer.max_trials to 320. An input override can replace or delete either value.
Completed=True marks a terminal Run, including failures. phase: Succeeded with reason
SearchSucceeded requires a successful search and at least one Valid=True Candidate. Inspect
phase, conditions, and diagnostic messages before deploying a result.
The publisher owns the Run’s Published condition. Published=True means the current projection
is published, including invalid Candidates; it does not mean that every Candidate is valid.
Retryable preparation errors, including an HTTP 403 from DGD dry-run admission, report
Published=False and keep retrying after permissions are repaired. The Run controller owns
Completed and the terminal outcome.
The Job has two containers. The planner image runs aisimulate recommend and writes atomic
dgdr_run snapshots to a shared emptyDir. The publisher in the operator image reads those
snapshots, updates Run progress, and reconciles Candidates. Only the publisher receives projected
Kubernetes credentials.
Inspect Candidates
Use the Run’s ordered candidateRefs. Scalar searches list the best-ranked Candidate first;
Pareto searches publish a bounded projection of the current front:
An abridged Candidate resembles:
The Candidate spec is immutable and preserves the DGD before dry-run defaulting or webhook
mutation. Evaluation parameters distinguish points with the same deployable DGD. Parameters and
metrics describe the original evaluation even when DGD overrides change the stored spec.
Check for Valid=True; a missing condition is not success. Valid reports strict API admission
validity, not image availability, GPU scheduling, deployment readiness, or the performance of a
modified deployment. Invalid Candidates remain visible and count toward maxCandidates.
Create a DGD from a Candidate
Wait for the owning Run to become terminal, then inspect its outcome and select a Candidate with
Valid=True:
Export the Candidate spec into an independent DGD. The guard refuses an invalid or unchecked Candidate; evaluation parameters are already outside the spec:
Review the generated manifest, select any labels and annotations intended for the new DGD, and create it:
The DGD has no owner reference to the Request or Run. Deleting the search history does not delete a DGD created from a Candidate.
Start a New Search
Change any native Request spec field to create a new generation. If the previous Run is active, the
Request controller marks it for supersession. The Run controller deletes only the execution Job,
waits for it to disappear, marks the immutable Run terminal with reason Superseded, and lets the
newest Request generation start. Rapid successive edits can coalesce intermediate generations.
The Request retains the five newest terminal Runs in status.recentRunRefs; older owned Runs and
their Candidates are garbage-collected. Metadata-only Request changes do not create a Run.
To repeat the search without changing its inputs, change spec.rerun.reason:
Use a different reason for each rerun. Reapplying the same reason does not create a generation. The reason is frozen into the replacement Run; this does not retry execution within an existing Run.
Work with v1beta1 Clients
v1beta1 and v1beta2 represent different workflows. Conversion preserves the complete native
payload instead of attempting a semantic conversion:
- A native v1beta2 Request stores its fields directly under
spec. A v1beta1 client sees that payload underspec.v1beta2. - A native v1beta1 Request keeps its profiler fields directly under
spec. A v1beta2 client sees that payload underspec.v1beta1. - Native fields and the foreign-version carrier are mutually exclusive. The carrier is read-only through the foreign API version.
Use the native API version to modify a Request. Run and Candidate resources have no v1beta1 form.
Clean Up
Delete the Request and its owned Runs and Candidates:
Independently created DGDs remain until you delete them: