Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/helm/charts/platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ Kubernetes: `>=1.30.0-0`
| global.snapshot.install | bool | `false` | Whether this chart should install the bundled Snapshot subchart (github.com/ai-dynamo/snapshot): its operator, node agent, and CRDs. NOTE: For production environments, it is recommended to install Snapshot separately. |
| dynamo-operator.enabled | bool | `true` | Whether to enable the Dynamo Kubernetes operator deployment |
| dynamo-operator.upgradeCRD | bool | `true` | Whether the cluster-wide operator applies CRDs from its image through the crd-apply init container. When false, the chart installs no CRDs; apply them separately before starting a cluster-wide operator. Namespace-restricted installations must set this to false and use the CRDs managed by the cluster-wide operator. |
| dynamo-operator.featureGates.DGDRV1Beta2 | bool | `false` | EXPERIMENTAL, DEVELOPMENT CLUSTERS ONLY: Install the unfinished DGDR v1beta2 API schemas. Run and Candidate objects are persisted in etcd; incompatible schema changes may make them unreadable or block future CRD upgrades. The operator does not reconcile v1beta2 resources. |
| dynamo-operator.dgdrV1Beta2.enabled | bool | `false` | EXPERIMENTAL, DEVELOPMENT CLUSTERS ONLY: Install the unfinished DGDR v1beta2 API schemas. Run and Candidate objects are persisted in etcd; incompatible schema changes may make them unreadable or block future CRD upgrades. The operator does not reconcile v1beta2 resources. |
| dynamo-operator.natsAddr | string | `""` | NATS server address for operator communication. When empty, the operator uses bundled NATS only if global.nats.install=true; otherwise NATS is not configured. Format: `nats://hostname:4222` |
| dynamo-operator.etcdAddr | string | `""` | etcd server address for an external etcd instance. Only needed when using external etcd without the bundled subchart. Format: `http://hostname:2379` or `https://hostname:2379` |
| dynamo-operator.modelExpressURL | string | `""` | URL for the Model Express server if not deployed by this helm chart. This is ignored if Model Express server is installed by this helm chart (global.model-express.enabled is true). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ spec:
- "--crds-dir=/opt/dynamo-operator/crds/"
- "--version={{ .Chart.AppVersion }}"
- "--lpx-enabled={{ .Values.lpx.enabled }}"
- "--dgdr-v1beta2-enabled={{ .Values.dgdrV1Beta2.enabled }}"
- "--conversion-webhook-service-name={{ include "dynamo-operator.fullname" . }}-webhook-service"
- "--conversion-webhook-service-namespace={{ .Release.Namespace }}"
- "--feature-gates=DGDRV1Beta2={{ .Values.featureGates.DGDRV1Beta2 }}"
{{- end }}
containers:
- args:
Expand Down
5 changes: 2 additions & 3 deletions deploy/helm/charts/platform/components/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ lpx:
# -- Configure the LPU model registry used by the LPX integration.
modelRegistryURL: ""

# Experimental operator features. Disabled gates do not change existing stable APIs.
featureGates:
dgdrV1Beta2:
# -- EXPERIMENTAL, DEVELOPMENT CLUSTERS ONLY: Install the unfinished DGDR v1beta2
# API schemas. DynamoGraphDeploymentRun and DynamoGraphDeploymentCandidate objects
# created through these schemas are persisted in etcd. Incompatible schema changes
# may make stored objects unreadable or block future CRD upgrades. When false, the
# CRD init container omits those resources and removes v1beta2 from
# DynamoGraphDeploymentRequest before installation. The operator does not reconcile
# v1beta2 resources.
DGDRV1Beta2: false
enabled: false

# Environment variables to pass to operator Deployment.
env: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ tests:
value: Deployment
- contains:
path: spec.template.spec.initContainers[0].args
content: --feature-gates=DGDRV1Beta2=false
content: --dgdr-v1beta2-enabled=false
documentSelector:
path: kind
value: Deployment

- it: enables experimental DGDR v1beta2 CRD installation
template: charts/dynamo-operator/templates/deployment.yaml
set:
dynamo-operator.featureGates.DGDRV1Beta2: true
dynamo-operator.dgdrV1Beta2.enabled: true
asserts:
- contains:
path: spec.template.spec.initContainers[0].args
content: --feature-gates=DGDRV1Beta2=true
content: --dgdr-v1beta2-enabled=true
documentSelector:
path: kind
value: Deployment
Expand Down
5 changes: 2 additions & 3 deletions deploy/helm/charts/platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,12 @@ dynamo-operator:
# the cluster-wide operator.
upgradeCRD: true

# Experimental operator features. Disabled gates do not change existing stable APIs.
featureGates:
dgdrV1Beta2:
# -- EXPERIMENTAL, DEVELOPMENT CLUSTERS ONLY: Install the unfinished DGDR v1beta2
# API schemas. Run and Candidate objects are persisted in etcd; incompatible
# schema changes may make them unreadable or block future CRD upgrades. The
# operator does not reconcile v1beta2 resources.
DGDRV1Beta2: false
enabled: false
Comment thread
sttts marked this conversation as resolved.
Resolved

# Environment variables to pass to operator Deployment.
env: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,13 @@ import (
"k8s.io/apimachinery/pkg/runtime"
)

const (
// DynamoGraphDeploymentCandidateConditionEvaluated reports whether AISimulate
// successfully evaluated the candidate.
DynamoGraphDeploymentCandidateConditionEvaluated = "Evaluated"
)

// DynamoGraphDeploymentCandidateStatus describes evaluation, never deployment health.
type DynamoGraphDeploymentCandidateStatus struct {
// Metrics are the resolved evaluation metrics for this point.
// +optional
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Type=object
Metrics *runtime.RawExtension `json:"metrics,omitempty"`

// Conditions includes the Evaluated condition, whose observedGeneration
// identifies the candidate spec generation represented by metrics.
// +optional
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

// DynamoGraphDeploymentCandidateSpec is an immutable evaluated point: the
Expand All @@ -60,7 +47,6 @@ type DynamoGraphDeploymentCandidateSpec struct {
// +kubebuilder:subresource:status
// +kubebuilder:resource:shortName=dgdc
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.spec) || self.spec == oldSelf.spec",message="spec is immutable"
// +kubebuilder:printcolumn:name="Evaluated",type=string,JSONPath=`.status.conditions[?(@.type=="Evaluated")].status`
// +kubebuilder:printcolumn:name="Backend",type=string,JSONPath=`.spec.backendFramework`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

Expand Down
26 changes: 15 additions & 11 deletions deploy/operator/api/v1beta2/dynamographdeploymentrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,24 @@ const (
// GPUHardwareSpec describes accelerator identity and the maximum allocation per candidate.
type GPUHardwareSpec struct {
// SKU identifies the accelerator using the AISimulate hardware catalog name.
// When omitted, admission discovers the accelerator from the cluster.
// +optional
// +kubebuilder:validation:MinLength=1
SKU string `json:"sku"`
SKU *string `json:"sku,omitempty"`

// Budget is the maximum total number of GPUs one candidate may use.
// When omitted, admission derives the available GPU budget from the cluster.
// +optional
// +kubebuilder:validation:Minimum=1
Budget int32 `json:"budget"`
Budget *int32 `json:"budget,omitempty"`
}

// HardwareSpec bounds the accelerator configurations evaluated by the search.
type HardwareSpec struct {
// GPU describes accelerator identity and the maximum allocation per candidate.
GPU GPUHardwareSpec `json:"gpu"`
// Omitted fields are resolved independently by admission.
// +optional
GPU *GPUHardwareSpec `json:"gpu,omitempty"`
}

// KVLoadRatio is either a pinned load ratio or a minimum/maximum range.
Expand All @@ -67,7 +73,6 @@ type KVLoadRatio []float64

// StaticWorkloadSpec defines one of AISimulate's synthetic workload shapes.
// +kubebuilder:validation:XValidation:rule="(has(self.requestRate) ? 1 : 0) + (has(self.concurrency) ? 1 : 0) + (has(self.kvLoadRatio) ? 1 : 0) <= 1",message="at most one of requestRate, concurrency, or kvLoadRatio may be specified"
// +kubebuilder:validation:XValidation:rule="!(has(self.requestCount) && has(self.numRequestRatio))",message="requestCount and numRequestRatio are mutually exclusive"
type StaticWorkloadSpec struct {
// ISL is the input sequence length in tokens.
// +optional
Expand All @@ -79,12 +84,6 @@ type StaticWorkloadSpec struct {
// +kubebuilder:validation:Minimum=1
OSL *int32 `json:"osl,omitempty"`

// RequestCount is the absolute number of requests evaluated. When both
// request-count controls are omitted, the execution underlay supplies its default.
// +optional
// +kubebuilder:validation:Minimum=1
RequestCount *int64 `json:"requestCount,omitempty"`

// NumRequestRatio sets request count relative to the selected load.
// +optional
// +kubebuilder:validation:ExclusiveMinimum=true
Expand Down Expand Up @@ -155,7 +154,7 @@ type ObjectiveSLASpec struct {
}

// ObjectiveSpec defines scalar optimization or a multi-objective Pareto search.
// +kubebuilder:validation:XValidation:rule="(self.mode == 'Optimize' && has(self.metric) && !has(self.metrics)) || (self.mode == 'Pareto' && !has(self.metric) && has(self.metrics))",message="Optimize requires metric; Pareto requires metrics"
// +kubebuilder:validation:XValidation:rule="(self.mode == 'Optimize' && !has(self.metrics)) || (self.mode == 'Pareto' && !has(self.metric) && has(self.metrics))",message="Optimize accepts only metric; Pareto requires metrics"
// +kubebuilder:validation:XValidation:rule="!(has(self.metric) && self.metric in ['Goodput', 'GoodputPerGPU']) || (has(self.sla) && (has(self.sla.ttftMs) || has(self.sla.itlMs) || has(self.sla.e2eMs)))",message="Goodput and GoodputPerGPU require at least one SLA bound"
// +kubebuilder:validation:XValidation:rule="!(has(self.metrics) && self.metrics.exists(m, m in ['Goodput', 'GoodputPerGPU'])) || (has(self.sla) && (has(self.sla.ttftMs) || has(self.sla.itlMs) || has(self.sla.e2eMs)))",message="Pareto metrics containing Goodput or GoodputPerGPU require at least one SLA bound"
type ObjectiveSpec struct {
Expand All @@ -165,6 +164,7 @@ type ObjectiveSpec struct {
Mode ObjectiveMode `json:"mode,omitempty"`

// Metric is the scalar target when mode is Optimize.
// When omitted in Optimize mode, admission defaults it to ThroughputPerGPU.
// +optional
Metric *ObjectiveMetric `json:"metric,omitempty"`

Expand Down Expand Up @@ -226,6 +226,7 @@ type DynamoGraphDeploymentRequestSpec struct {
Backends []Backend `json:"backends,omitempty"`

// Hardware bounds the accelerator configurations evaluated by the search.
// Admission discovers any omitted hardware values from the cluster.
// +optional
Hardware *HardwareSpec `json:"hardware,omitempty"`

Expand All @@ -235,7 +236,10 @@ type DynamoGraphDeploymentRequestSpec struct {
Workload *WorkloadSpec `json:"workload,omitempty"`

// Objective defines scalar optimization or a multi-objective Pareto search.
// When omitted, the schema supplies the default Optimize mode and SLA;
// admission supplies the conditional scalar metric.
// +optional
// +kubebuilder:default={}
Objective *ObjectiveSpec `json:"objective,omitempty"`

// AISimulate selects the execution artifact and supplies native AISimulate input.
Expand Down
6 changes: 3 additions & 3 deletions deploy/operator/api/v1beta2/dynamographdeploymentrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ type RoundProgress struct {
Total int32 `json:"total"`
}

// BranchProgress reports progress for one independently optimized backend and topology branch.
// BranchProgress reports progress for one independently optimized AISimulate branch.
type BranchProgress struct {
// Name is the stable branch identifier chosen by the executor.
// Name is the executor-defined stable branch identifier.
Name string `json:"name"`

// Rounds reports optimizer progress for this branch.
Expand Down Expand Up @@ -101,7 +101,7 @@ type CandidateProgress struct {

// DGDRRunProgress contains branch-aware optimizer and evaluation outcome counters.
type DGDRRunProgress struct {
// Branches reports each independently optimized backend and topology branch.
// Branches reports independently optimized AISimulate branches.
// +optional
// +listType=map
// +listMapKey=name
Expand Down
44 changes: 23 additions & 21 deletions deploy/operator/api/v1beta2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading