-
Notifications
You must be signed in to change notification settings - Fork 385
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
Precise execution according to waterline #216
Conversation
0d16aeb
to
4c7c8ed
Compare
🎉 Successfully Build Images. Overview: https://finops.coding.net/public-artifacts/gocrane/crane/packages
|
Please have a square for the commits. |
pkg/ensurance/executor/waterline.go
Outdated
if !evictExist { | ||
delete(eviceGapToWaterLines, string(m)) | ||
} else { | ||
eviceGapToWaterLines[string(m)] = maxUsed - float64(evictWaterLine.PopSmallest().Value()) |
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 we need to sort first of the throttleExecutor, we pop the first, but named smallest
Can we write a proposal, and reviewed the proposal first before reviewing this PR? I had confused by the GapToWaterLine and the sort. |
9586ee3
to
045b0c9
Compare
5decc43
to
4532054
Compare
4532054
to
64f6342
Compare
How about writing some overview for these pics? |
Ok, these pics are test results, i have added some comments. This pr has a related proposal #357, thx~ |
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.
Hi,pull requests that are too big can be difficult to review effectively.
here are some suggestions to make code readable.
Thanks for your code review! There are so many helpful comments! I have fixed them. Thx! |
c9fe84b
to
60813ac
Compare
60813ac
to
e2d0b85
Compare
Because of the complexity of this requirement, let's merge into the PR first, and we can continue to discuss it on the PR and propose a new PR for modification. Thanks very much to everyone. |
/LGTM |
What type of PR is this?
Feature
What this PR does / why we need it:
Add waterline for precise execution, select how many pods will be executed.
The sort logic will be put into executor module use with waterline.
Proposal: #357
Some things to complete