Closed AnhQKatalon closed 3 months ago
In the code, the utilization calculation is like this: (CPU requests not include Daemonset's Pod) / (CPU Allocatable - daemonset's pod requests)
https://github.com/kubernetes/autoscaler/blob/c96aa9b97087603cb6884e1af7c20fa2969fb86d/cluster-autoscaler/simulator/utilization/info.go#L125
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
/bump
Which component are you using?: Cluster Autoscaler
What version of the component are you using?: v1.27.2
Component version:
What k8s version are you using (
kubectl version
)?: EKS 1.27kubectl version
OutputWhat environment is this in?: EKS
What did you expect to happen?: CPU utilization is around 0.52
What happened instead?: Node A is not suitable for removal - cpu utilization too big (0.709220)
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Hello all,
Currently, I am using Cluster Autoscaler for our EKS Cluster. I have just noticed that the log showing the CPU utilization for my nodes does not seem correct.
I have turned on the option
--ignore-daemonsets-utilization=true
, but it seems the CPU utilization still includes it. Below is the information of my nodeOnly the final pod is created from the Deployment. All the other pods are from Deamonsets. So from the FAQ, I expect the CPU utilization is calculated by
(CPU requests not include Daemonset's Pod) / (CPU Allocatable) = 1000 / 1930 = 0.51
But from the cluster-autoscaler pod log, it outputs the following information:
Node XXX is not suitable for removal - cpu utilization too big (0.709220)
I am not sure how the number
0.709220
is calculated. Below is the command from the autoscaler podAppreciate your help so much on this case