-
Notifications
You must be signed in to change notification settings - Fork 671
[RayService] Add an envtest for autoscaler #2872
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
[RayService] Add an envtest for autoscaler #2872
Conversation
| // (1) Create a RayService custom resource | ||
| // (2) The RayService controller creates a pending RayCluster | ||
| // (3) Ray Autoscaler scales up the RayCluster | ||
| // (4) The RayService controller should not trigger zero downtime upgrade | ||
| // (5) The serve application becomes ready on the pending RayCluster | ||
| // (6) The pending RayCluster transitions to become the active RayCluster | ||
| // (7) Ray Autoscaler scales up the RayCluster again | ||
| // (8) The RayService controller should not trigger zero downtime upgrade |
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.
Do we still need these comments? Maybe they can be merged into the description of It. And then in the future if we want to add more It in the middle, we don't need to change a lot of numbers in the comment here.
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.
updated
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.
I made the comment more generic.
Signed-off-by: Kai-Hsun Chen <kaihsun@anyscale.com>
| Eventually( | ||
| getResourceFunc(ctx, client.ObjectKey{Name: rayService.Name, Namespace: "default"}, rayService), | ||
| time.Second*3, time.Millisecond*500).Should(BeNil(), "My myRayService = %v", rayService.Name) | ||
| *rayService.Spec.RayClusterSpec.WorkerGroupSpecs[0].Replicas++ |
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.
This is also used to simulate Ray Autoscaler.
Why are these changes needed?
Related issue number
Checks