Skip to content

Commit

Permalink
update base template with priorities and update cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClifford committed Jul 26, 2023
1 parent a1f084c commit 20e6d93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
14 changes: 0 additions & 14 deletions src/codeflare_sdk/cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,9 @@ def create_app_wrapper(self):
instascale = self.config.instascale
instance_types = self.config.machine_types
env = self.config.envs
<<<<<<< HEAD
<<<<<<< HEAD
local_interactive = self.config.local_interactive
image_pull_secrets = self.config.image_pull_secrets
=======
priority = self.config.priority
>>>>>>> 7e7a311 ( add priorities and schedulingSpec to SDK)
=======
dispatch_priority = self.config.dispatch_priority
>>>>>>> b1d1d16 (change 'priority' to 'dispatch priority')
return generate_appwrapper(
name=name,
namespace=namespace,
Expand All @@ -113,16 +106,9 @@ def create_app_wrapper(self):
instascale=instascale,
instance_types=instance_types,
env=env,
<<<<<<< HEAD
<<<<<<< HEAD
local_interactive=local_interactive,
image_pull_secrets=image_pull_secrets,
=======
priority=priority,
>>>>>>> 7e7a311 ( add priorities and schedulingSpec to SDK)
=======
dispatch_priority=dispatch_priority,
>>>>>>> b1d1d16 (change 'priority' to 'dispatch priority')
)

# creates a new cluster with the provided or default spec
Expand Down
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 @@ -221,6 +224,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.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ spec:
nvidia.com/gpu: 0
imagePullSecrets:
- name: unit-test-pull-secret
priorityClassName: default-priority
rayVersion: 2.1.0
workerGroupSpecs:
- groupName: small-group-unit-test-cluster
Expand Down Expand Up @@ -192,7 +193,7 @@ spec:
to:
kind: Service
name: unit-test-cluster-head-svc
replicas: 1
replica: 1
Items: []
schedulingSpec:
minAvailable: 3

0 comments on commit 20e6d93

Please sign in to comment.