-
Notifications
You must be signed in to change notification settings - Fork 40.9k
node: mm-mgr: Migrate Memory Manager to contextual logging #130727
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
base: master
Are you sure you want to change the base?
node: mm-mgr: Migrate Memory Manager to contextual logging #130727
Conversation
2682d8a
to
269c6cb
Compare
/wg structured-logging |
@swatisehgal: GitHub didn't allow me to request PR reviews from the following users: kubernetes/wg-structured-logging-reviews. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/triage accepted |
@pohly A gentle ping for your review on this one. Thanks in advance! |
c7989a1
to
24df696
Compare
Seems unrelated, let's retry /test pull-kubernetes-unit-windows-master |
/test pull-kubernetes-unit-windows-master |
/test pull-kubernetes-unit-windows-master unrelated failures |
24df696
to
5dc4184
Compare
/test pull-kubernetes-e2e-capz-windows-master |
ff272cb
to
5285b9f
Compare
Signed-off-by: Swati Sehgal <[email protected]>
Signed-off-by: Swati Sehgal <[email protected]>
Signed-off-by: Swati Sehgal <[email protected]>
This commit will squashed with the main commit responsible for migration to contextual logging. Signed-off-by: Swati Sehgal <[email protected]>
This commit to be squashed into the main commit as well. Signed-off-by: Swati Sehgal <[email protected]>
To be squashed with main commit Signed-off-by: Swati Sehgal <[email protected]>
To be squashed into main commit Signed-off-by: Swati Sehgal <[email protected]>
5285b9f
to
23e60e4
Compare
Signed-off-by: Swati Sehgal <[email protected]>
We pass contexts to Start, RemoveContainer and GetAllocatableMemory. At this stage it is not possible to cover all the methods as that would have impact on other components e.g. Topology Manager and therefore require changes there which is currently outside the scope of this PR. Impact on Topology Manager is due to the fact that it defines HintProvider interface which has Allocate, GetTopologyHints and GetPodTopologyHints methods. Passing context to the abovementioned methods would break the interface contract between Memory Manager not implementing Hintprovider interface or require updating the definition of methods under Topology Manager. The later is outside the scope for now and would be handled when we migrate Topology Manager code base to contextual logging. An alternative is to skip this partial migration in favor of doing it all in one go but based on the suggestions in the review, we are passing contexts and using those for logging purposes as much as possible without impacting other components. This commit is intentionally kept separate to drive conversation and can be squahed or removed depending on reviewers' perspective. Signed-off-by: Swati Sehgal <[email protected]>
Signed-off-by: Swati Sehgal <[email protected]>
Signed-off-by: Swati Sehgal <[email protected]>
23e60e4
to
277dd17
Compare
/retest |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Migrate Memory manager to contextual logging.
Which issue(s) this PR fixes:
Fixes 123037 and 130069
Special notes for your reviewer:
Does this PR introduce a user-facing change?