> This page is for version dev.
> For other versions, use one of these documentation indexes:
> - Latest (v1.7.1) (default): https://docs.nvidia.com/dynamo/latest/llms.txt
> - dev: https://docs.nvidia.com/dynamo/dev/llms.txt
> - v1.7.1: https://docs.nvidia.com/dynamo/v1.7.1/llms.txt
> - v1.6.2: https://docs.nvidia.com/dynamo/v1.6.2/llms.txt
> - v1.7.0: https://docs.nvidia.com/dynamo/v1.7.0/llms.txt
> - v1.6.1: https://docs.nvidia.com/dynamo/v1.6.1/llms.txt
> - v1.6.0: https://docs.nvidia.com/dynamo/v1.6.0/llms.txt
> - v1.5.1: https://docs.nvidia.com/dynamo/v1.5.1/llms.txt
> - v1.5.0: https://docs.nvidia.com/dynamo/v1.5.0/llms.txt
> - v1.4.2: https://docs.nvidia.com/dynamo/v1.4.2/llms.txt
> - v1.4.1: https://docs.nvidia.com/dynamo/v1.4.1/llms.txt
> - v1.4.0: https://docs.nvidia.com/dynamo/v1.4.0/llms.txt
> - v1.3.0: https://docs.nvidia.com/dynamo/v1.3.0/llms.txt
> - v1.2.1: https://docs.nvidia.com/dynamo/v1.2.1/llms.txt
> - v1.2.0: https://docs.nvidia.com/dynamo/v1.2.0/llms.txt
> - v1.1.1: https://docs.nvidia.com/dynamo/v1.1.1/llms.txt
> - v1.1.0: https://docs.nvidia.com/dynamo/v1.1.0/llms.txt
> - v1.0.2: https://docs.nvidia.com/dynamo/v1.0.2/llms.txt
> - v1.0.1: https://docs.nvidia.com/dynamo/v1.0.1/llms.txt
> - v1.0.0: https://docs.nvidia.com/dynamo/v1.0.0/llms.txt
> - v0.9.1: https://docs.nvidia.com/dynamo/v-0-9-1/llms.txt
> - v0.9.0: https://docs.nvidia.com/dynamo/v-0-9-0/llms.txt
> - v0.8.1: https://docs.nvidia.com/dynamo/v-0-8-1/llms.txt
> - v0.8.0: https://docs.nvidia.com/dynamo/v-0-8-0/llms.txt
> - v0.7.1: https://docs.nvidia.com/dynamo/v-0-7-1/llms.txt
> - v0.7.0: https://docs.nvidia.com/dynamo/v-0-7-0/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://docs.nvidia.com/dynamo/llms.txt. For full content including API reference and SDK examples, see https://docs.nvidia.com/dynamo/llms-full.txt.

# Get Started with Planner

Deploy Qwen3-0.6B with Planner on a development cluster. This
workflow uses the default queue-based autoscaling policy, keeps at least one
prefill and one decode replica, and limits Planner to four GPUs. You do not need
to choose a traffic predictor or provide runtime latency targets.

## Prerequisites

* Complete the [Kubernetes Quickstart](/dynamo/dev/kubernetes/getting-started/quickstart), including
  installing the Dynamo platform and verifying that a model serves requests.
* Have four schedulable GPUs on hardware supported by the profiler's
  [rapid search](/dynamo/dev/knowledge-base/modular-components/profiler/profiler-guide#support-matrix).
  Keep the version-selector exports from that quickstart: `DYNAMO_IMAGE`,
  `DYNAMO_VERSION`, and `DYNAMO_RUNTIME_VERSION` when provided. The example reuses
  them so the profiler and workers follow your selected install instead of
  deriving an image tag from the operator version.
* Install [AIPerf](/dynamo/dev/kubernetes/operations/benchmarking-with-ai-perf#prerequisites) on the
  machine from which you run the load test.

> **Warning**
>
> Use a development deployment for this first run. Scale-down can interrupt
> in-flight requests that do not finish within the removed worker's shutdown grace
> period. A replica floor controls how many workers remain.

#### Create a deployment request

In the terminal with the quickstart's version exports, create `planner-demo.yaml`.
A DynamoGraphDeploymentRequest (DGDR) selects an initial configuration and
generates the serving deployment with a Planner component.

```bash
cat > planner-demo.yaml <<EOF
apiVersion: nvidia.com/v1beta1
kind: DynamoGraphDeploymentRequest
metadata:
  name: planner-demo
spec:
  model: Qwen/Qwen3-0.6B
  backend: vllm
  image: ${DYNAMO_IMAGE}
  runtimeVersionOverride: "${DYNAMO_RUNTIME_VERSION:-${DYNAMO_VERSION}}"
  searchStrategy: rapid
  autoApply: true
  hardware:
    totalGpus: 4
  workload:
    isl: 2000
    osl: 256
    requestRate: 10
  features:
    planner:
      mode: disagg
      backend: vllm
      optimization_target: throughput
      min_endpoint: 1
      max_gpu_budget: 4
EOF
```

`optimization_target: throughput` uses built-in thresholds on prompt queues and
KV cache utilization. It does not require a Prometheus traffic query or a
latency-performance model. DGDR still uses its default profiling latency targets
in rapid search to choose the initial worker configuration; these are separate
from the runtime Planner policy.

With Planner enabled, rapid search picks a disaggregated configuration, so
`mode: disagg` matches the generated prefill and decode workers. On hardware
outside the support matrix, the profiler logs `Naive fallback` and generates an
aggregated configuration instead; set `mode: agg` in that case.

In a terminal, set the namespace to the one prepared in the quickstart and apply
the request:

```bash
export NAMESPACE=dynamo-system
kubectl apply -n "$NAMESPACE" -f planner-demo.yaml
kubectl get dynamographdeploymentrequests.v1beta1.nvidia.com planner-demo -n "$NAMESPACE" -w
```

The commands name the v1beta1 API version, matching the manifest. Without it,
kubectl reads the request through a newer version that reports status in a
different shape. Wait for the phase to become `Deployed`, then stop the watch
with Ctrl+C. If it becomes `Failed`, inspect
`kubectl describe dynamographdeploymentrequests.v1beta1.nvidia.com planner-demo -n "$NAMESPACE"`.
For profiling and image problems, see
[DGDR troubleshooting](/dynamo/dev/kubernetes/auto-deployment/dgdr-walkthrough#troubleshoot).

#### Verify the workers and Planner

Read the generated DynamoGraphDeployment (DGD) name and list its pods:

```bash
export DGD_NAME=$(kubectl get dynamographdeploymentrequests.v1beta1.nvidia.com planner-demo \
  -n "$NAMESPACE" -o jsonpath='{.status.dgdName}')
kubectl get pods -n "$NAMESPACE" \
  -l "nvidia.com/dynamo-graph-deployment-name=$DGD_NAME"
kubectl logs -n "$NAMESPACE" \
  -l "nvidia.com/dynamo-graph-deployment-name=$DGD_NAME,nvidia.com/dynamo-component-type=planner" \
  -c main --tail=100
```

Check that the frontend, prefill worker, decode worker, and Planner are running.
Planner needs worker load records, called ForwardPassMetrics (FPM), to make
queue-based decisions. Repeated `no_fpm_data` or `missing_engine_metadata`
decisions mean the inputs are unavailable; a running pod alone does not prove
that scaling is working. See
[backend requirements](/dynamo/dev/knowledge-base/modular-components/planner/planner-operations#load-based-scaling).

#### Send load to the model

Forward the frontend service in the same terminal:

```bash
kubectl port-forward -n "$NAMESPACE" "svc/$DGD_NAME-frontend" 8000:8000
```

In a second terminal, send streaming requests:

```bash
aiperf profile \
  --model Qwen/Qwen3-0.6B \
  --url http://localhost:8000 \
  --endpoint-type chat \
  --streaming \
  --concurrency 16 \
  --request-count 1000 \
  --synthetic-input-tokens-mean 2000 \
  --output-tokens-mean 256
```

AIPerf records request latency, throughput, and failures. A fixed concurrency
creates a closed-loop load test: faster responses allow more requests to arrive.
Use a recorded arrival trace for a repeatable policy comparison.

#### Check the scaling behavior

In a third terminal, set the same namespace and deployment name, then watch the
replicas while the load test runs and after it ends:

```bash
export NAMESPACE=dynamo-system
export DGD_NAME=$(kubectl get dynamographdeploymentrequests.v1beta1.nvidia.com planner-demo \
  -n "$NAMESPACE" -o jsonpath='{.status.dgdName}')
kubectl get dgd "$DGD_NAME" -n "$NAMESPACE" -o yaml -w
```

Compare each desired count in `spec.components[].replicas` with the matching
entry in `status.components`, keyed by component name. Read `readyReplicas` or
`availableReplicas`, depending on which the workload provider reports. The DGD
status works across Grove, DisaggregatedSet, and DCD-backed deployments.

A successful smoke test shows valid inputs and explained hold or scale decisions
in the Planner logs. Applied changes then appear in the DGD status. Under
sustained overload, look for a higher desired count followed by additional ready
workers. After load falls, look for scale-down toward the
configured floors. A short or light test may leave the counts unchanged; a hold
decision with valid inputs is different from missing metrics. Pending pods mean
the deployment has not yet supplied the requested capacity.

For longer tests, use the
[Planner diagnostics reports](/dynamo/dev/knowledge-base/modular-components/planner/planner-operations#html-diagnostics-reports)
to inspect recommendations and decisions alongside actual replicas. Check AIPerf
request failures and observed latency as well as capacity changes.

## Clean Up

Stop the port-forward and watches. Delete both resources to release the serving
GPUs; deleting a DGDR alone leaves its generated DGD running.

```bash
kubectl delete dgdr planner-demo -n "$NAMESPACE"
kubectl delete dgd "$DGD_NAME" -n "$NAMESPACE"
```

## Next Steps

* To inspect recommendations without changing replicas, follow
  [advisory validation and guardrails](/dynamo/dev/kubernetes/auto-deployment/dynamo-planner#validate-before-you-scale-for-real)
  on a separate deployment. Choose advisory mode before submitting its DGDR;
  the spec becomes immutable when profiling starts.
* To scale toward specific response-latency targets, see
  [Tune the Planner](/dynamo/dev/kubernetes/auto-deployment/dynamo-planner).
* To compare policies on the same traffic before a live test, see
  [Simulate Planner Decisions](/dynamo/dev/knowledge-base/modular-components/planner/aisimulate-planner-replay).