Skip to content

Commit

Permalink
update base template with priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClifford committed Jun 22, 2023
1 parent 3c37651 commit ced41ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/codeflare_sdk/templates/base-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
orderedinstance: "m4.xlarge_g4dn.xlarge"
spec:
priority: 9
schedulingSpec:
minAvailable: 3
resources:
Items: []
GenericItems:
Expand Down Expand Up @@ -112,6 +114,7 @@ spec:
operator: In
values:
- "aw-kuberay"
priorityClassName: "default-priority"
containers:
# The Ray head pod
- env:
Expand Down Expand Up @@ -182,6 +185,7 @@ spec:
operator: In
values:
- "aw-kuberay"
priorityClassName: "default-priority"
initContainers:
# the env var $RAY_IP is set by the operator if missing, with the value of the head service name
- name: init-myservice
Expand Down
3 changes: 2 additions & 1 deletion tests/test-case-cmd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ spec:
cpu: 2
memory: 8G
nvidia.com/gpu: 0
priorityClassName: default-priority
rayVersion: 2.1.0
workerGroupSpecs:
- groupName: small-group-unit-cmd-cluster
Expand Down Expand Up @@ -152,7 +153,7 @@ spec:
to:
kind: Service
name: unit-cmd-cluster-head-svc
replicas: 1
replica: 1
Items: []
schedulingSpec:
minAvailable: 3
3 changes: 2 additions & 1 deletion tests/test-case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ spec:
cpu: 2
memory: 8G
nvidia.com/gpu: 0
priorityClassName: default-priority
rayVersion: 2.1.0
workerGroupSpecs:
- groupName: small-group-unit-test-cluster
Expand Down Expand Up @@ -172,7 +173,7 @@ spec:
to:
kind: Service
name: unit-test-cluster-head-svc
replicas: 1
replica: 1
Items: []
schedulingSpec:
minAvailable: 3

0 comments on commit ced41ab

Please sign in to comment.