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

koord-descheduler: refactor descheduler pod sorter #937

Conversation

eahydra
Copy link
Member

@eahydra eahydra commented Jan 7, 2023

Signed-off-by: Joseph joseph.t.lee@outlook.com

Ⅰ. Describe what this PR does

refactor koord-descheduler pod sorter:

  1. Implement independent comparison functions according to different dimensions, improve code readability and facilitate code reuse
  2. Optimize the implementation of Pod/Node sorting by usage

V. Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in make test

@codecov
Copy link

codecov bot commented Jan 7, 2023

Codecov Report

Base: 66.44% // Head: 66.57% // Increases project coverage by +0.12% 🎉

Coverage data is based on head (8abb697) compared to base (e635b6c).
Patch coverage: 80.40% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #937      +/-   ##
==========================================
+ Coverage   66.44%   66.57%   +0.12%     
==========================================
  Files         241      243       +2     
  Lines       27925    28043     +118     
==========================================
+ Hits        18556    18670     +114     
+ Misses       8092     8091       -1     
- Partials     1277     1282       +5     
Flag Coverage Δ
unittests 66.57% <80.40%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/descheduler/utils/sorter/scorer.go 67.64% <67.64%> (ø)
pkg/descheduler/utils/sorter/helper.go 73.58% <73.58%> (ø)
pkg/descheduler/utils/sorter/pod.go 83.11% <83.11%> (ø)
...er/framework/plugins/loadaware/utilization_util.go 89.29% <96.55%> (+0.94%) ⬆️
...duler/framework/plugins/loadaware/low_node_load.go 67.00% <100.00%> (+0.84%) ⬆️
pkg/util/httputil/reverseproxy.go 85.63% <0.00%> (+1.32%) ⬆️
pkg/koordlet/runtimehooks/reconciler/reconciler.go 65.88% <0.00%> (+4.11%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@eahydra eahydra force-pushed the refactor_descheduler_pod_sorter_v1 branch from fdeaaa1 to 87985ee Compare January 9, 2023 03:35
@eahydra eahydra force-pushed the refactor_descheduler_pod_sorter_v1 branch from 87985ee to ade680b Compare January 9, 2023 06:48
Copy link
Member

@jasonliu747 jasonliu747 left a comment

Choose a reason for hiding this comment

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

/lgtm

@koordinator-bot koordinator-bot bot added the lgtm label Jan 9, 2023
@eahydra eahydra force-pushed the refactor_descheduler_pod_sorter_v1 branch from ade680b to 6a572fd Compare January 9, 2023 13:12
@koordinator-bot koordinator-bot bot removed the lgtm label Jan 9, 2023
@eahydra eahydra force-pushed the refactor_descheduler_pod_sorter_v1 branch from 6a572fd to b1e4269 Compare January 9, 2023 13:22
Signed-off-by: Joseph <joseph.t.lee@outlook.com>
@eahydra eahydra force-pushed the refactor_descheduler_pod_sorter_v1 branch from b1e4269 to 8abb697 Compare January 9, 2023 13:30
@eahydra
Copy link
Member Author

eahydra commented Jan 9, 2023

updated to resolve conflicts

Copy link
Member

@FillZpp FillZpp left a comment

Choose a reason for hiding this comment

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

/lgtm

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FillZpp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@koordinator-bot koordinator-bot bot merged commit d98251d into koordinator-sh:main Jan 10, 2023
FillZpp pushed a commit that referenced this pull request Jan 16, 2023
Signed-off-by: Joseph <joseph.t.lee@outlook.com>
lucming pushed a commit to lucming/koordinator that referenced this pull request Feb 8, 2023
Signed-off-by: Joseph <joseph.t.lee@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants