-
Notifications
You must be signed in to change notification settings - Fork 109
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
fix(sysadvisor): fix create duplicated regions for distinct container… #37
fix(sysadvisor): fix create duplicated regions for distinct container… #37
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
==========================================
- Coverage 50.99% 50.93% -0.07%
==========================================
Files 311 311
Lines 31796 31822 +26
==========================================
- Hits 16215 16209 -6
- Misses 13666 13694 +28
- Partials 1915 1919 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes 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 in Codecov by Sentry. |
b6fce35
to
0c5c04e
Compare
why don't we just store container -> region info in metacache's container-info? for instance, other metrics pipeline will also need to get this mapping relationships too cc @sun-yuliang |
6e2242e
to
e9d0d71
Compare
} | ||
return nil, false | ||
return regions, nil | ||
} | ||
|
||
func (cra *cpuResourceAdvisor) setContainerRegions(ci *types.ContainerInfo, regions []region.QoSRegion) { |
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.
setContainerRegions will not change container info in metacache because it is called by metacache.RangeContainer, which is a reader function. Use RangeAndUpdateContainer instead.
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.
fixed
containerRegionMap map[string]map[string][]region.QoSRegion // map[podUID][containerName]regions | ||
poolRegionMap map[string][]region.QoSRegion // map[poolName]regions | ||
regionMap map[string]region.QoSRegion // map[regionName]region | ||
poolRegionMap map[string][]region.QoSRegion // map[poolName]regions |
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.
Move pool region names to pool info in metacache as region names in container info.
1e2db42
to
dc0a0a2
Compare
dc0a0a2
to
bfdc398
Compare
…ers owned to identical pod Signed-off-by: linzhecheng <linzhecheng@bytedance.com>
bfdc398
to
ea621e6
Compare
…s owned to identical pod
What type of PR is this?
Bug fixes
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for your reviewer: