Skip to content

[kubectl-plugin] remove CPU limits by default #3243

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

Merged

Conversation

andrewsykim
Copy link
Member

Why are these changes needed?

From personal experience, CPU limits cause more problems than they solve. I suggest we remove CPU limits in the plugin by default.

Related issue number

Checks

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

@andrewsykim
Copy link
Member Author

@davidxia @MortalHappiness PTAL

@andrewsykim andrewsykim force-pushed the kubectl-plugin-no-limits branch 2 times, most recently from e8ace75 to 0931296 Compare March 28, 2025 01:40
Copy link
Member

@MortalHappiness MortalHappiness left a comment

Choose a reason for hiding this comment

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

LGTM. But please fix the lint error. Thanks.

Copy link
Contributor

@davidxia davidxia left a comment

Choose a reason for hiding this comment

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

lgtm, just one suggestion

@@ -87,6 +87,23 @@ func generateResources(cpu, memory, ephemeralStorage, gpu string) corev1.Resourc
return resources
}

// generateLimitResources returns a corev1.ResourceList with the given CPU, memory, ephemeral storage, and GPU values for only resource limits
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// generateLimitResources returns a corev1.ResourceList with the given CPU, memory, ephemeral storage, and GPU values for only resource limits
// generateLimitResources returns a corev1.ResourceList with the given memory, ephemeral storage, and GPU values for only resource limits

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
@andrewsykim andrewsykim force-pushed the kubectl-plugin-no-limits branch from 0931296 to afd621f Compare March 28, 2025 13:45
@andrewsykim andrewsykim merged commit e794dc3 into ray-project:master Mar 31, 2025
21 checks passed
andrewsykim added a commit to andrewsykim/kuberay that referenced this pull request Apr 2, 2025
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
andrewsykim added a commit to andrewsykim/kuberay that referenced this pull request Apr 2, 2025
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
andrewsykim added a commit to andrewsykim/kuberay that referenced this pull request Apr 2, 2025
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
andrewsykim added a commit that referenced this pull request Apr 2, 2025
* [RayJob][Fix] Use --no-wait for job submission to avoid carrying the error return code to the log tailing (#3216)

* [RayJob][Fix] Use --no-wait for job submission to avoid carrying the error return code to the log tailing

Signed-off-by: Rueian <rueiancsie@gmail.com>

* [RayJob][Fix] Use --no-wait for job submission to avoid carrying the error return code to the log tailing

Signed-off-by: Rueian <rueiancsie@gmail.com>

* chore: update comments

Signed-off-by: Rueian <rueiancsie@gmail.com>

* chore: add a comment about bash -e

Signed-off-by: Rueian <rueiancsie@gmail.com>

---------

Signed-off-by: Rueian <rueiancsie@gmail.com>

* kubectl ray job submit: provide entrypoint (#3186)

* [kubectl-plugin] Add head/worker node selector option (#3228)

* add node selector option for kubectl plugin create cluster

Signed-off-by: Troy Chiu <y.troychiu@gmail.com>

* nit

Signed-off-by: Troy Chiu <y.troychiu@gmail.com>

---------

Signed-off-by: Troy Chiu <y.troychiu@gmail.com>

* add node selector option for kubectl plugin create worker group (#3235)

* add node selector option for kubectl plugin create work group

Signed-off-by: Troy Chiu <y.troychiu@gmail.com>

* nit

Signed-off-by: Troy Chiu <y.troychiu@gmail.com>

* code review: fix usage

Signed-off-by: Troy Chiu <y.troychiu@gmail.com>

---------

Signed-off-by: Troy Chiu <y.troychiu@gmail.com>

* [kubectl-plugin] remove CPU limits by default (#3243)

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

* [Chore][CI] Limit the release-image-build github workflow to only take tag as input (#3117)

* remove all inputs from workflow_dispatch

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* use tag only

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* align case

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* change sha

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* extract tag

* lint fix

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* update github_env

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* directly take tag

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* add env,

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* directly use tag

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* use env. when in script

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* env.tag when with

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

* use env.tag for all

Signed-off-by: Tina Wu <j6vupz97@gmail.com>

---------

Signed-off-by: Tina Wu <j6vupz97@gmail.com>
Co-authored-by: tinaxfwu <twu@synchron.com>

* [CI] Remove create tag step from release (#3249)

Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>

---------

Signed-off-by: Rueian <rueiancsie@gmail.com>
Signed-off-by: Troy Chiu <y.troychiu@gmail.com>
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
Signed-off-by: Tina Wu <j6vupz97@gmail.com>
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
Co-authored-by: Rueian <rueiancsie@gmail.com>
Co-authored-by: Spencer Peterson <spencerjp@google.com>
Co-authored-by: Troy Chiu <114708546+troychiu@users.noreply.github.com>
Co-authored-by: Tina Wu <j6vupz97@gmail.com>
Co-authored-by: tinaxfwu <twu@synchron.com>
Co-authored-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
win5923 pushed a commit to win5923/kuberay that referenced this pull request Apr 27, 2025
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
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.

3 participants