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

[refactor][plugin] RayClusterSpecObject #3238

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

davidxia
Copy link
Contributor

so we can use it for this proposed cluster config schema. We change in a backwards-compatible way to support multiple worker groups and other fields in the schema.

Checks

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

Comment on lines -37 to -41
type RayClusterYamlObject struct {
ClusterName string
Namespace string
Labels map[string]string
Annotations map[string]string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I folded this struct into RayClusterSpecObject.

Copy link
Contributor Author

@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.

#3225's very similar RayClusterConfig and rayClusterSpecObjectFromConfig() motivated this PR.

@davidxia davidxia force-pushed the refactor1 branch 2 times, most recently from 56968e6 to cfaabee Compare March 27, 2025 16:46
@davidxia davidxia marked this pull request as ready for review March 28, 2025 12:12
@davidxia
Copy link
Contributor Author

davidxia commented Mar 31, 2025

rebased to fix conflicts

WorkerMemory string
WorkerEphemeralStorage string
WorkerReplicas int32
Context *string `yaml:"context,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why YAML tags in both RayClusterSpecObject and RayClusterConfig?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think RayClusterConfig is introduced yet? I will rename this struct to RayClusterConfig in #3225.

so we can use it for [this proposed cluster config schema][1].
We change in a backwards-compatible way to support multiple worker groups and
other fields in the schema.

[1]: https://docs.google.com/document/d/18V5_7SGUzS0LGlaJB7xus04omyr3drKkK4vV6Kz14jY/edit?tab=t.0#heading=h.tuqyq1b6b2x7

Signed-off-by: David Xia <[email protected]>
@andrewsykim andrewsykim merged commit e296805 into ray-project:master Mar 31, 2025
21 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.

4 participants