-
Notifications
You must be signed in to change notification settings - Fork 29
Added diagnostic logs for potential empty nodes #372
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
Added diagnostic logs for potential empty nodes #372
Conversation
| if skipMirrorPods && podutils.IsMirrorPod(podInfo.Pod) { | ||
| daemonSetAndMirrorPodsUtilization.Add(resourceValue) | ||
| if detailedPodCount < maxDiagnosticPods { | ||
| fmt.Fprintf(&diagBuff, "pod %s/%s is a miror pod. Adding resource %q, value %v to daemonSetAndMirrorPodsUtilization\n", podInfo.Pod.Namespace, podInfo.Pod.Name, resourceName, resourceValue) |
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.
| fmt.Fprintf(&diagBuff, "pod %s/%s is a miror pod. Adding resource %q, value %v to daemonSetAndMirrorPodsUtilization\n", podInfo.Pod.Namespace, podInfo.Pod.Name, resourceName, resourceValue) | |
| fmt.Fprintf(&diagBuff, "pod %s/%s is a mirror pod. Adding resource %q, value %v to daemonSetAndMirrorPodsUtilization\n", podInfo.Pod.Namespace, podInfo.Pod.Name, resourceName, resourceValue) |
Nitpick: typo: miror --> mirror
|
|
||
| podsRequest.Add(resourceValue) | ||
| if detailedPodCount < maxDiagnosticPods { | ||
| fmt.Fprintf(&diagBuff, "pod %s/%s has requests %v\n", podInfo.Pod.Namespace, podInfo.Pod.Name, resourceValue) |
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.
Any reason why resource name is only logged for mirror and daemonset pods?
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.
This was a miss. Corrected the log message
f730f6f to
4d4bc50
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.
Thanks for the PR!
/lgtm
7bbbe4c
into
gardener:machine-controller-manager-provider
What this PR does / why we need it:
This PR adds diagnostic logs to the function
CalculateUtilizationOfResource()This was needed due to recent occurrences where CA found nodes with 0% resource utilisation even though pods were scheduled on such nodes
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: