-
Notifications
You must be signed in to change notification settings - Fork 223
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 a metric that tracks the number of preemptions issued by a ClusterQueue #2538
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vladikkuzn The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/assign |
41b04ed
to
91bc308
Compare
/test all |
1 similar comment
/test all |
/cc |
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.
a few nits, looks good overall
@@ -137,6 +137,7 @@ var _ = ginkgo.Describe("Preemption", func() { | |||
|
|||
util.FinishEvictionForWorkloads(ctx, k8sClient, lowWl1, lowWl2) | |||
util.ExpectEvictedWorkloadsTotalMetric(cq.Name, kueue.WorkloadEvictedByPreemption, 2) | |||
util.ExpectPreemptedWorkloadsTotalMetric(cq.Name, "InClusterQueue", 2) |
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.
are there integ tests covering the other 3 cases? can we add assertions there too?
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.
Can you please clarify which cases do you mean?
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.
the other 3 reasons - InCohortReclamation
etc
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 look into this
/release-note-edit
Use the name of the user facing metric, as opposed to the variable name. |
/retest |
Please rebase |
…rQueue * Metric for preempted workloads
25ca5fe
to
98f2671
Compare
98f2671
to
8bfe17f
Compare
…rQueue * Merge metric for preempted workloads into ReportPreemption * test helper * Expect all preemption reasons
8bfe17f
to
aaf0922
Compare
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.
These changes look good, but looking at the test updates, I realized that there is a bug in #2411 (comment)
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds a metric that tracks the number of preemptions issued by a ClusterQueue
Which issue(s) this PR fixes:
Fixes #2491
Special notes for your reviewer:
NONE
Does this PR introduce a user-facing change?