Skip to content
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

Add more precise logging for VPA resource recommendations #6723

Merged
merged 7 commits into from
May 29, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (calc *UpdatePriorityCalculator) AddPod(pod *apiv1.Pod, now time.Time) {
klog.V(4).Infof("not updating pod %v/%v because resource would not change", pod.Namespace, pod.Name)
return
}
klog.V(2).Infof("pod accepted for update %v/%v with priority %v", pod.Namespace, pod.Name, updatePriority.ResourceDiff)
klog.V(2).Infof("pod accepted for update %v/%v with priority %v", pod.Namespace, pod.Name, updatePriority.ResourceDiff, processedRecommendation)
nikimanoledaki marked this conversation as resolved.
Show resolved Hide resolved
calc.pods = append(calc.pods, prioritizedPod{
pod: pod,
priority: updatePriority,
Expand Down
1 change: 1 addition & 0 deletions vertical-pod-autoscaler/pkg/utils/vpa/capping.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func getCappedRecommendationForContainer(
cappingAnnotations = append(cappingAnnotations, annotations...)
}
}
klog.V(3).Infof("processed capped recommendations for %s: %v", container.Name, cappingAnnotations)
nikimanoledaki marked this conversation as resolved.
Show resolved Hide resolved
}

process(cappedRecommendations.Target, true)
Expand Down
Loading