Skip to content

koordlet: resource qos config supports SYSTEM qos#1556

Merged
koordinator-bot[bot] merged 1 commit intokoordinator-sh:mainfrom
saintube:koordlet-fix-resource-qos-config-failed-on-system
Aug 18, 2023
Merged

koordlet: resource qos config supports SYSTEM qos#1556
koordinator-bot[bot] merged 1 commit intokoordinator-sh:mainfrom
saintube:koordlet-fix-resource-qos-config-failed-on-system

Conversation

@saintube
Copy link
Member

@saintube saintube commented Aug 18, 2023

Ⅰ. Describe what this PR does

koordlet: Add the ResourceQOS configurations for qos=SYSTEM pods.

Ⅱ. Does this pull request fix one issue?

When a pod claims its QoSClass as SYSTEM, the current ResourceQOS strategy can fail to parse the config for the pod since there is no SYSTEM class config defined. Especially, it can cause panic when CgroupReconcile is enabled and a SYSTEM pod is running on the node.

Ⅲ. 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

Signed-off-by: saintube <saintube@foxmail.com>
@zwzhang0107
Copy link
Contributor

/lgtm

@zwzhang0107
Copy link
Contributor

/approve

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

@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Patch coverage: 97.67% and project coverage change: -0.03% ⚠️

Comparison is base (b791330) 65.04% compared to head (7eed21f) 65.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1556      +/-   ##
==========================================
- Coverage   65.04%   65.02%   -0.03%     
==========================================
  Files         352      352              
  Lines       36214    36253      +39     
==========================================
+ Hits        23556    23573      +17     
- Misses      10919    10938      +19     
- Partials     1739     1742       +3     
Flag Coverage Δ
unittests 65.02% <97.67%> (-0.03%) ⬇️

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

Files Changed Coverage Δ
...qosmanager/plugins/cgreconcile/cgroup_reconcile.go 81.98% <0.00%> (ø)
pkg/koordlet/qosmanager/helpers/property.go 43.75% <100.00%> (+3.75%) ⬆️
pkg/util/sloconfig/nodeslo_config.go 95.61% <100.00%> (+0.75%) ⬆️

... and 4 files with indirect coverage changes

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

@FillZpp
Copy link
Member

FillZpp commented Aug 18, 2023

/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

Details 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

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.

4 participants