-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat(kcnr): add node metric #63
Conversation
aa1f9ea
to
49cccfb
Compare
ResourceUsage `json:",inline"` | ||
} | ||
|
||
type NUMAMetricInfo struct { |
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.
why we need per-numa level data
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.
for numa aware scheduling
pkg/apis/node/v1alpha1/types.go
Outdated
// NUMAUsage contains the real-time resource usage for each NUMA | ||
NUMAUsage []NUMAMetricInfo `json:"numaUsage,omitempty"` | ||
|
||
// GenericUsage contains the real-time resource usage, in format of '{"cpu": 2, "memory": "1Gi"}' |
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.
since we already have NUMAUsage
why we still need GenericUsage
? should we restrict that only one of these two fields is valid?
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.
Not all metrics can be granularized to the NUMA level,such as network bandwidth.
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.
ok, so we should restrict that only one of these two fields is valid (for a certain resource)? if so, pls add some comments here
49cccfb
to
3a1038e
Compare
3a1038e
to
0898b95
Compare
Signed-off-by: linzhecheng <[email protected]>
0898b95
to
f5dfa7f
Compare
What type of PR is this?
Features
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for your reviewer: