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

apis & slo-controller: allow specifying node-wise total bandwidth via annotation #1982

Merged

Conversation

sjtufl
Copy link
Contributor

@sjtufl sjtufl commented Apr 2, 2024

Ⅰ. Describe what this PR does

Introduce an extension API (through annotation) to specify the total bandwidth for a node. This parameter takes precedence over ones configured in cluster strategy or node strategy, and will take effect in NodeSLO.

Ⅱ. Does this pull request fix one issue?

fixes #1883 (part 1).

@sjtufl
Copy link
Contributor Author

sjtufl commented Apr 2, 2024

@zwzhang0107 PTAL

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 63.63636% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 68.68%. Comparing base (dd5184d) to head (d6e8842).
Report is 2 commits behind head on main.

Files Patch % Lines
pkg/slo-controller/nodeslo/resource_strategy.go 63.63% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1982      +/-   ##
==========================================
+ Coverage   68.63%   68.68%   +0.04%     
==========================================
  Files         421      421              
  Lines       38778    38787       +9     
==========================================
+ Hits        26616    26641      +25     
+ Misses       9847     9834      -13     
+ Partials     2315     2312       -3     
Flag Coverage Δ
unittests 68.68% <63.63%> (+0.04%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zwzhang0107
Copy link
Contributor

remember to commit with -s

@sjtufl sjtufl force-pushed the feat/netqos-node-bandwidth branch from 9ca7b09 to 1170f25 Compare April 7, 2024 06:25
@sjtufl
Copy link
Contributor Author

sjtufl commented Apr 7, 2024

remember to commit with -s

done

@sjtufl sjtufl force-pushed the feat/netqos-node-bandwidth branch from 1170f25 to 31df962 Compare April 7, 2024 06:49
@sjtufl
Copy link
Contributor Author

sjtufl commented Apr 7, 2024

/assign @zwzhang0107

@zwzhang0107
Copy link
Contributor

/lgtm
/approve

@koordinator-bot koordinator-bot bot added the lgtm label Apr 9, 2024
apis/extension/node_qos.go Outdated Show resolved Hide resolved
Signed-off-by: sjtufl <jerryfang555@qq.com>
…r cluster or node strategy

Signed-off-by: sjtufl <jerryfang555@qq.com>
@sjtufl sjtufl force-pushed the feat/netqos-node-bandwidth branch from 628d77b to d6e8842 Compare April 10, 2024 03:17
@koordinator-bot koordinator-bot bot removed the lgtm label Apr 10, 2024
@zwzhang0107
Copy link
Contributor

/lgtm

@koordinator-bot koordinator-bot bot added the lgtm label Apr 11, 2024
@sjtufl
Copy link
Contributor Author

sjtufl commented Apr 11, 2024

@zwzhang0107 @hormes PTAL, just renamed api to network-bandwidth

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

@FillZpp
Copy link
Member

FillZpp commented Apr 12, 2024

/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FillZpp, jasonliu747, zwzhang0107

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 0ea2f6e into koordinator-sh:main Apr 12, 2024
20 checks passed
georgexiang pushed a commit to ocichina/koordinator that referenced this pull request Apr 15, 2024
… annotation (koordinator-sh#1982)

Signed-off-by: sjtufl <jerryfang555@qq.com>
Signed-off-by: george <xiangzhihua@gmail.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.

[proposal] Get node bandwidth automatically for network qos
5 participants