-
Notifications
You must be signed in to change notification settings - Fork 312
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-scheduler: add device scheduling debug api #637
koord-scheduler: add device scheduling debug api #637
Conversation
bb3bf36
to
13e6824
Compare
Codecov ReportBase: 68.90% // Head: 68.97% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #637 +/- ##
==========================================
+ Coverage 68.90% 68.97% +0.06%
==========================================
Files 194 196 +2
Lines 22180 22304 +124
==========================================
+ Hits 15284 15384 +100
- Misses 5832 5856 +24
Partials 1064 1064
Flags with carried forward coverage won't be shown. Click here to find out 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. |
13e6824
to
642575b
Compare
642575b
to
46819f8
Compare
@@ -89,7 +88,15 @@ func (n *nodeDeviceCache) update(nodeName string, device *schedulingv1alpha1.Dev | |||
if nodeDeviceResource[deviceInfo.Type] == nil { | |||
nodeDeviceResource[deviceInfo.Type] = make(deviceResources) | |||
} | |||
nodeDeviceResource[deviceInfo.Type][int(deviceInfo.Minor)] = deviceInfo.Resources | |||
if !deviceInfo.Health { |
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.
这个逻辑和目前这个PR是不关联的。建议单独提交一个PR。
0117d69
to
1b83aeb
Compare
9840c53
to
efaeb0f
Compare
- add device share debug api - support assign fail if card unhealthy Signed-off-by: yangzhang <bupt_cozy@126.com>
efaeb0f
to
ed33ebe
Compare
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.
/lgtm
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eahydra, hormes 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 |
Signed-off-by: yangzhang bupt_cozy@126.com
Ⅰ. Describe what this PR does
add restful api for device scheduling plugin to help diagnose problems
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist
make test