Skip to content
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

Fix Issues Arising from Confusing Weighted Costs #3758

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

d80tb7
Copy link
Collaborator

@d80tb7 d80tb7 commented Jun 27, 2024

The cost provider returned weighted costs, this caused issues iin a couple of places where an unweighted cost was expected.

  • protected fair share
  • actual_share metric

I've modified the cost provider to also return unweighted costs and have renamed the existing methods soo that it's clear they are weighted.

d80tb7 added 3 commits June 27, 2024 22:27
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
@@ -1312,6 +1312,37 @@ func TestPreemptingQueueScheduler(t *testing.T) {
"D": 1,
},
},
"ProtectedFractionOfFairShare non equal weights": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This unit test demonstrates the issue

Signed-off-by: Chris Martin <[email protected]>
@d80tb7 d80tb7 enabled auto-merge (squash) June 28, 2024 08:34
@d80tb7 d80tb7 merged commit 481b2de into master Jun 28, 2024
20 checks passed
@d80tb7 d80tb7 deleted the f/chrisma/fix-actual-share branch June 28, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants