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

Fall back to CPU requests if limit is not specified #2365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewsykim
Copy link
Collaborator

Why are these changes needed?

Per discussion in #2361, it is common and often recommended that workloads specify CPU requests and NOT limits. This is to prevent premature CPU throttling from cgroups and underutilization of machine resources.

In KubeRay, you must specify limits to appropriately configure --num-cpus flag in Ray. This PR makes limits optional by looking at CPU requests for num-cpus. We only check CPU requests if limits is not specified to avoid beaking existing deployments that rely on limits.

Related issue number

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant