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

koordlet: add runtime hook plugin batch resource #774

Merged

Conversation

saintube
Copy link
Member

@saintube saintube commented Nov 2, 2022

Signed-off-by: saintube saintube@foxmail.com

Ⅰ. Describe what this PR does

Add a runtime hook plugin named BatchResource to apply cpu/memory limitations for batch pods.

It will replace the old BEReconcile reconciler via runtime hook workflow.

Ⅱ. Does this pull request fix one issue?

fixes #717

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

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 Nov 2, 2022

Codecov Report

Base: 67.93% // Head: 67.57% // Decreases project coverage by -0.36% ⚠️

Coverage data is based on head (0e5d063) compared to base (9ff814a).
Patch coverage: 51.59% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #774      +/-   ##
==========================================
- Coverage   67.93%   67.57%   -0.37%     
==========================================
  Files         216      218       +2     
  Lines       24381    24913     +532     
==========================================
+ Hits        16564    16835     +271     
- Misses       6668     6900     +232     
- Partials     1149     1178      +29     
Flag Coverage Δ
unittests 67.57% <51.59%> (-0.37%) ⬇️

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

Impacted Files Coverage Δ
pkg/koordlet/runtimehooks/config.go 100.00% <ø> (ø)
...oordlet/runtimehooks/protocol/container_context.go 5.63% <0.00%> (-2.06%) ⬇️
pkg/koordlet/runtimehooks/protocol/pod_context.go 7.33% <0.00%> (-4.97%) ⬇️
pkg/util/container.go 60.66% <0.00%> (-8.91%) ⬇️
pkg/util/pod.go 35.13% <0.00%> (-9.19%) ⬇️
pkg/util/pod_resources_utils.go 58.22% <ø> (ø)
pkg/util/system/cgroup_resource.go 0.00% <ø> (ø)
pkg/koordlet/runtimehooks/protocol/protocol.go 4.34% <9.09%> (-0.66%) ⬇️
pkg/koordlet/runtimehooks/reconciler/reconciler.go 67.05% <50.00%> (-11.89%) ⬇️
...runtimehooks/hooks/batchresource/batch_resource.go 69.91% <69.91%> (ø)
... and 5 more

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.

@saintube saintube force-pushed the add-runtimehook-batch-resource branch 2 times, most recently from 297c837 to 135cc4c Compare November 16, 2022 09:26
@koordinator-bot koordinator-bot bot added size/XXL and removed size/L labels Nov 16, 2022
@saintube saintube changed the title WIP: koordlet: add runtime hook plugin batch resource koordlet: add runtime hook plugin batch resource Nov 16, 2022
@saintube saintube force-pushed the add-runtimehook-batch-resource branch 2 times, most recently from a2ce13d to 16f72e7 Compare November 17, 2022 14:14
@saintube saintube force-pushed the add-runtimehook-batch-resource branch 3 times, most recently from a73336b to 9c69f68 Compare November 21, 2022 10:33
@saintube saintube force-pushed the add-runtimehook-batch-resource branch from 9c69f68 to 17f3f96 Compare November 22, 2022 03:47
@saintube saintube force-pushed the add-runtimehook-batch-resource branch from 17f3f96 to d762806 Compare November 23, 2022 04:45
Signed-off-by: saintube <saintube@foxmail.com>
@saintube saintube force-pushed the add-runtimehook-batch-resource branch from d762806 to 0e5d063 Compare November 23, 2022 04:54
@saintube saintube removed the request for review from stormgbs November 23, 2022 04:55
@zwzhang0107
Copy link
Contributor

/lgtm
/approved

@zwzhang0107
Copy link
Contributor

zwzhang0107 commented Nov 24, 2022

/approve

1 similar comment
@zwzhang0107
Copy link
Contributor

/approve

@zwzhang0107
Copy link
Contributor

/assign @FillZpp

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.

/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FillZpp, 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 9766c24 into koordinator-sh:main Nov 28, 2022
@FillZpp
Copy link
Member

FillZpp commented Dec 13, 2022

/milestone v1.1

@koordinator-bot koordinator-bot bot added this to the v1.1 milestone Dec 13, 2022
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] Support kata container to use koordinator resources
3 participants