[RayService][e2e] Fix misplaced max_ongoing_requests in incremental-upgrade serveConfigV2 #5107
cc @win5923 @machichima to decide if this counts as fixing https://github.com/ray-project/kuberay/issues/4782. Thank you.
Thanks! I think we can merge this for now, but should still follow up on the 1/50 failure and figure out what's causing it.
I can also take a look later.
Approved these changes.
Actually I'm thinking if we could decrease the required RPS from 400 to something like 350. In the PR adding this test, there's a few tuning on this value
https://github.com/ray-project/kuberay/pull/4541/changes/ffd38b688e034d8ab138689ff7bc022529a07719
Thanks! I think we can merge this for now, but should still follow up on the 1/50 failure and figure out what's causing it. I can also take a look later.
Will do. Thanks.
Actually I'm thinking if we could decrease the required RPS from 400 to something like 350. In the PR adding this test, there's a few tuning on this value
> ffd38b6
If there is no particular reason to use 400, I think we can turn it down to 350, and run the test again to verify the results. Would love to get more context from @JiangJiaWei1103 if you get the time. Thanks.
Had an discussion with @machichima, who proposed looking into whether the locust container has undergone cpu throttling. The intuition here is that the client could possibly not able to send enough requests.
Sorry for the delay. I'm currently busy with relocation. Will take a look tmr. Thx!
Thanks for working on this! I agree with merging this fix first and lowering the threshold to 350.
In the long term, relying on hardcoded absolute RPS assertions on shared CI runners is flaky due to issues like noisy neighbors on shared host VMs, varying runner hardware specifications across runs, and local resource contention.
We can discuss adopting a more robust benchmark strategy in the original issue (e.g., relative performance comparison against baseline).
It's kind of weird that this doesn't cause an error or some condition in the RayService status. As a follow-up we should consider doing some validation agains the RayService configs and raising an error earlier.
Approved these changes.
Actually I'm thinking if we could decrease the required RPS from 400 to something like 350. In the PR adding this test, there's a few tuning on this value
> ffd38b6
Two test runs in https://buildkite.com/ray-project/ray-ecosystem-ci-kuberay-ci/builds/16520/list?sid=019fec4c-eac3-426b-a92d-13a249b7345c&tab=artifacts and 1dbea77 result in 1/50 failure, which shows that 350 is not safer than the original 400.
Agreed. I'll look into this first, then file a follow-up issue to track it. Thanks for the suggestion!
win5923
justinyeh1995
<!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. -->
Why are these changes needed?
The max_ongoing_requests used in highRPSServeConfigV2 is misplaced. https://github.com/ray-project/kuberay/blob/55ffdebb12a3d62b3a75b628219f01749fec3210/ray-operator/test/e2eincrementalupgrade/constant.go#L117
As Ray Serve Autoscaling points out, it is not part of the autoscaling config. Therefore, the current setup uses a default value of 5 instead of the proclaimed value 6.
https://github.com/ray-project/ray/blob/328e6b7646facad6dc92e37b8db2b478b2089a87/python/ray/serve/_private/constants.py#L283
Also, there is a 1/50 (2×25 runs) chances the RPS >= 400 check would timeout but comparing with the original setup it is not a regression, which also has a chances of failing 1 out of 50 times under 2 runs.
Related issue number
<!-- For example: "Closes #1234" -->
related to #4782
Labels
<!-- Please add the appropriate labels to this PR. -->
doc-updates-requiredlabel.breaking-changelabel.Checks
- [ ] Unit tests
- [x] Manual tests
<!-- If you selected "Manual tests" above, please fill in the section below. Otherwise you can remove it. -->
Manual test instructions
Manual test is recorded in https://github.com/ray-project/kuberay/pull/5098, the change does not introduce a regression.