-
Notifications
You must be signed in to change notification settings - Fork 402
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 NumOfHosts to WorkerGroupSpec (CRD change only) #1834
Conversation
@@ -56,6 +56,9 @@ type WorkerGroupSpec struct { | |||
// MaxReplicas denotes the maximum number of desired Pods for this worker group, and the default value is maxInt32. | |||
// +kubebuilder:default:=2147483647 | |||
MaxReplicas *int32 `json:"maxReplicas"` | |||
// NumOfHosts denotes the number of hosts to create per replica. The default value is 1. | |||
// +kubebuilder:default:=1 | |||
NumOfHosts *int32 `json:"numOfHosts"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Should we add
omitempty
to make this field optional? - Perhaps we could use
int32
instead to avoid some nil checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can run make sync
to resolve the CI error operator-consistency-check / helm-chart-verify-crd
. See this doc for more details.
Done, all the tests are passing now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Wait for the e2e tests to pass.
Seems like I don't have write access. Can you merge? |
Why are these changes needed?
Adds "NumOfHosts" as an int32 field in RayCluster CR's WorkerGroupSpec section. NumOfHosts will be used to denote WorkerGroup replicas consisting of multiple hosts (for example, TPU hosts in a multi-host pod).
Related issue number
ray-project/ray#39781
Checks