disagg_planner.yaml 4.53 KB
Newer Older
1
2
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
Alec's avatar
Alec committed
3

4
5
6
apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
7
  name: vllm-disagg-planner
8
9
  annotations:
    nvidia.com/enable-grove: "false" # temporarily disable grove because current k8s connector does not work with grove
10
spec:
11
12
13
14
15
  envs:
    - name: DYNAMO_SERVICE_CONFIG
      value: '{"Prometheus":{"global":{"scrape_interval":"5s"},"scrape_configs":[{"job_name":"prometheus","static_configs":[{"targets":["localhost:9090"]}]},{"job_name":"frontend","static_configs":[{"targets":["vllm-disagg-planner-frontend:8000"]}]}]}}'
    - name: DYNAMO_NAMESPACE
      value: "vllm-disagg-planner"
16
17
  services:
    Frontend:
18
      dynamoNamespace: vllm-disagg-planner
19
      componentType: frontend
20
      replicas: 1
21
22
      extraPodSpec:
        mainContainer:
23
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.4.1
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
    Planner:
      dynamoNamespace: vllm-disagg-planner
      envFromSecret: hf-token-secret
      componentType: planner
      replicas: 1
      livenessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - "exit 0"
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      readinessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - "exit 0"
        initialDelaySeconds: 60
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      pvc:
        create: false
50
        name: dynamo-pvc # Must be pre-created before deployment and SLA profiler must have been run
51
        mountPoint: /workspace/profiling_results
52
53
      extraPodSpec:
        mainContainer:
54
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.4.1
55
          workingDir: /workspace/components/planner/src/dynamo/planner
julienmancuso's avatar
julienmancuso committed
56
57
58
          command:
            - /bin/sh
            - -c
59
          args:
julienmancuso's avatar
julienmancuso committed
60
61
62
63
64
65
            - >-
              python3 -m planner_sla
              --environment=kubernetes
              --backend=vllm
              --adjustment-interval=60
              --profile-results-dir=/workspace/profiling_results
66
    Prometheus: # NOTE: this is set on Prometheus to ensure a service is created for the Prometheus component. This is a workaround and should be managed differently.
67
      dynamoNamespace: vllm-disagg-planner
68
      componentType: frontend
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
      replicas: 1
      envs:
        - name: PYTHONPATH
          value: "/workspace/components/planner/src"
      livenessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - "exit 0"
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      readinessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - "exit 0"
        initialDelaySeconds: 30
        periodSeconds: 60
        timeoutSeconds: 30
        failureThreshold: 10
      extraPodSpec:
        mainContainer:
94
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.4.1
Alec's avatar
Alec committed
95
          workingDir: /workspace/components/backends/vllm
96
97
98
          command:
            - /bin/sh
            - -c
99
          args:
100
            - "python3 -m dynamo.planner.prometheus"
101
    VllmDecodeWorker:
102
      dynamoNamespace: vllm-disagg-planner
103
      envFromSecret: hf-token-secret
104
      componentType: worker
105
      replicas: 2
106
107
      resources:
        limits:
108
          gpu: "1"
109
110
      extraPodSpec:
        mainContainer:
111
112
113
114
115
116
          startupProbe:
            httpGet:
              path: /health
              port: 9090
            periodSeconds: 10
            failureThreshold: 60
117
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.4.1
Alec's avatar
Alec committed
118
          workingDir: /workspace/components/backends/vllm
119
          command:
120
            - python3
121
          args:
122
123
124
125
            - -m
            - dynamo.vllm
            - --model
            - Qwen/Qwen3-0.6B
126
    VllmPrefillWorker:
127
      dynamoNamespace: vllm-disagg-planner
128
      envFromSecret: hf-token-secret
129
      componentType: worker
130
      replicas: 2
131
132
      resources:
        limits:
133
          gpu: "1"
134
135
      extraPodSpec:
        mainContainer:
136
137
138
139
140
141
          startupProbe:
            httpGet:
              path: /health
              port: 9090
            periodSeconds: 10
            failureThreshold: 60
142
          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.4.1
Alec's avatar
Alec committed
143
          workingDir: /workspace/components/backends/vllm
144
          command:
145
            - python3
146
          args:
147
148
149
150
151
            - -m
            - dynamo.vllm
            - --model
            - Qwen/Qwen3-0.6B
            - --is-prefill-worker