-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[WRR] Prefer application_utilization to cpu_utilization #33355
Conversation
ORCA code is commented out yet. |
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 looks good, modulo a few minor test comments. Feel free to merge after addressing.
/*qps=*/100.0, /*eps=*/0.0, | ||
/*cpu_utilization=*/0.9)}, | ||
{kAddresses[1], | ||
MakeBackendMetricData(/*app_utilization=*/0, |
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.
Please change some of the data in this test to set both application_utilization and cpu_utilization, the latter using a bogus value, so that we are testing that we prefer application_utilization when both values are set.
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.
Added a new test.
{{kAddresses[0], MakeBackendMetricData(/*app_utilization=*/0, | ||
/*qps=*/100.0, /*eps=*/0.0, | ||
/*cpu_utilization=*/0.9)}, | ||
{kAddresses[1], MakeBackendMetricData(/*app_utilization=*/0, |
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.
Same comment here as in the CpuUtilWhenNoAppUtil
test above.
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.
Added a new test.
}); | ||
} | ||
|
||
TEST_P(WrrTest, CpuUtilWithNoAppUtil) { |
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 don't think we need to test this case again here. We're already covering this in the WRR unit test; all we're really checking here is the WRR config linkage via xDS, which does not affect the backend metric processing.
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.
Removed.
Note that we can't merge this until the orca proto change has been imported. |
Orca proto change is imported cl/538546518, enabling auto-merge. |
<!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. -->
<!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. -->
No description provided.