Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add use of priorityClasses to SDK #96

Merged

Conversation

MichaelClifford
Copy link
Collaborator

@MichaelClifford MichaelClifford commented Apr 25, 2023

This PR enables the use of PriorityClasses for our RayClusters.

closes #182

  • Adds a new parameter dispatch_priority to ClusterConfig
  • If dispatch_priority is left empty, appwrapper is not affected.
  • If dispatch_priority is used, then appwrapper adds the field priorityClassName to the head and worker group specs.
  • Also adds functionality to check the validity of the appwrapper during cluster.up(). This addition is required as not all values for dispatch_priority are valid and the cluster needs to be checked for valid values before applying the appwrapper.

src/codeflare_sdk/utils/generate_yaml.py Outdated Show resolved Hide resolved
src/codeflare_sdk/utils/generate_yaml.py Outdated Show resolved Hide resolved
src/codeflare_sdk/utils/generate_yaml.py Outdated Show resolved Hide resolved
@MichaelClifford
Copy link
Collaborator Author

@asm582 Do you want to give this another look and approve the changes requested?

@MichaelClifford
Copy link
Collaborator Author

Thanks for the comments @KPostOffice . updated 😄

@asm582 Do you want to give this another look and resolve any outstanding comments 😄

tests/unit_test.py Outdated Show resolved Hide resolved
@MichaelClifford MichaelClifford changed the title WIP add priorities to SDK Add priorities to SDK Jun 21, 2023
@MichaelClifford MichaelClifford force-pushed the priority branch 5 times, most recently from db09cf3 to ced41ab Compare June 22, 2023 01:00
@asm582
Copy link
Member

asm582 commented Jun 22, 2023

LGTM, priority levels for now are hardcoded in some way, in the future users may need fewer or more priority levels.

@MichaelClifford MichaelClifford changed the title Add priorities to SDK WIP Add priorities to SDK Jun 23, 2023
@asm582
Copy link
Member

asm582 commented Aug 22, 2023

@MichaelClifford Checked this is approved, please feel free to merge

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 22, 2023
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 22, 2023
Copy link
Collaborator

@Maxusmusti Maxusmusti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 22, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asm582, Maxusmusti

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 22, 2023
@openshift-merge-robot openshift-merge-robot merged commit e6d9f76 into project-codeflare:main Aug 22, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support use of PriorityClass for Appwrappers in the SDK
6 participants