Skip to navigation

Get Started with Planner

Deploy one model with built-in autoscaling and check its replica decisions.

View as MarkdownOpen in Claude

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, 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. 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 on the machine from which you run the load test.

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.

1

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.

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:

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.

2

Verify the workers and Planner

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

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.

3

Send load to the model

Forward the frontend service in the same terminal:

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

In a second terminal, send streaming requests:

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.

4

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:

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 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.

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 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.
  • To compare policies on the same traffic before a live test, see Simulate Planner Decisions.