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

[RayCluster][Fix] DesiredReplicas, MinReplicas and MaxReplicas should respect workerGroupSpec.Suspend #2728

Merged

Conversation

rueian
Copy link
Contributor

@rueian rueian commented Jan 10, 2025

Why are these changes needed?

While working on #2666, I found that the DesiredWorkerReplicas in the RayCluster status remains incorrect when some worker groups have been suspended. Suspended worker groups should not be counted in the DesiredWorkerReplicas, or it will confuse users. The MinWorkerReplicas and MaxWorkerReplicas statuses are in the same situation.

Related issue number

Checks

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

@rueian rueian force-pushed the fix-cluster-desire-with-suspended-groups branch from 374ab4f to c8f8263 Compare January 10, 2025 20:33
@rueian rueian marked this pull request as ready for review January 10, 2025 21:08
@rueian
Copy link
Contributor Author

rueian commented Jan 10, 2025

Hi @kevin85421, @MortalHappiness please take a look.

PS. The failing check seems unrelated to this change.
image

@kevin85421 kevin85421 self-assigned this Jan 10, 2025
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

@kevin85421 kevin85421 merged commit 42f299a into ray-project:master Jan 14, 2025
23 of 24 checks passed
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