Native sidecar mode: planner, LoRA fallback, and backend detection still read main
Author: tmonty12Created Oct 1, 2026Updated Oct 1, 2026
Labelsdynamo-runtimedeployment::k8splannerruntimeoperator
Parent DEP: #14657. Follow-up from the review of #14927.
In native-sidecar mode, main runs the engine with a user-supplied command and the Dynamo runtime runs in the runtime init container. These consumers still derive Dynamo settings from main:
- Planner model discovery:
get_model_nameincomponents/src/dynamo/planner/monitoring/dgd_services.pyparsesmainargs for--served-model-name,--model-name, or--model. An engine command such asvllm-rs serve <model>yields no model name. - vLLM prefill LoRA fallback:
deploy/operator/internal/controller/dynamo_model_controller.godetects the backend frommain's command withDetectBackendFrameworkFromArgs, so sidecar prefill pods never get the fallback. - Backend detection:
getBackendFrameworkFromComponentindeploy/operator/internal/dynamo/graph.gomatchespython -m dynamo.<backend>inmain. Withoutspec.backendFramework, sidecar workers resolve to the no-op backend:compilationCachewithoutmountPathis rejected, andVLLM_CACHE_ROOTis not set.
Proposal: for each consumer, read from the runtime container or the worker's registered metadata, or reject or document the combination for Phase 1 (for example, require backendFramework in sidecar mode).
Source: ai-dynamo/dynamo