Skip to content

Commit ced41ab

Browse files
update base template with priorities
1 parent 3c37651 commit ced41ab

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/codeflare_sdk/templates/base-template.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ metadata:
88
orderedinstance: "m4.xlarge_g4dn.xlarge"
99
spec:
1010
priority: 9
11+
schedulingSpec:
12+
minAvailable: 3
1113
resources:
1214
Items: []
1315
GenericItems:
@@ -112,6 +114,7 @@ spec:
112114
operator: In
113115
values:
114116
- "aw-kuberay"
117+
priorityClassName: "default-priority"
115118
containers:
116119
# The Ray head pod
117120
- env:
@@ -182,6 +185,7 @@ spec:
182185
operator: In
183186
values:
184187
- "aw-kuberay"
188+
priorityClassName: "default-priority"
185189
initContainers:
186190
# the env var $RAY_IP is set by the operator if missing, with the value of the head service name
187191
- name: init-myservice

tests/test-case-cmd.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ spec:
8888
cpu: 2
8989
memory: 8G
9090
nvidia.com/gpu: 0
91+
priorityClassName: default-priority
9192
rayVersion: 2.1.0
9293
workerGroupSpecs:
9394
- groupName: small-group-unit-cmd-cluster
@@ -152,7 +153,7 @@ spec:
152153
to:
153154
kind: Service
154155
name: unit-cmd-cluster-head-svc
155-
replicas: 1
156+
replica: 1
156157
Items: []
157158
schedulingSpec:
158159
minAvailable: 3

tests/test-case.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ spec:
9999
cpu: 2
100100
memory: 8G
101101
nvidia.com/gpu: 0
102+
priorityClassName: default-priority
102103
rayVersion: 2.1.0
103104
workerGroupSpecs:
104105
- groupName: small-group-unit-test-cluster
@@ -172,7 +173,7 @@ spec:
172173
to:
173174
kind: Service
174175
name: unit-test-cluster-head-svc
175-
replicas: 1
176+
replica: 1
176177
Items: []
177178
schedulingSpec:
178179
minAvailable: 3

0 commit comments

Comments
 (0)