You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default_estimator.go function EstimateNode
if node node.Annotations node.koordinator.sh/raw-allocatable not set
EstimateNode() will use node.Status.Allocatable by default why not node.Status.Capacity
node memory useage get from machine /proc/meminfo (i.MemTotal - i.MemAvailable) * 1024 is true, but filterNodeUsage memory percent is node_usage / node_Allocatable .
if use node_Allocatable is right why node memory usage use (i.MemTotal - i.MemAvailable) , not all pod in node use total, because there will some memory can not be use.
What you expected to happen:
EstimateNode() use node.Status.Capacity default or node memory useage use pod in node use real total
Environment:
Koordinator version: - v1.4.0
Kubernetes version (use kubectl version): v1.20.10
docker/containerd version: docker 1.20
OS (e.g: cat /etc/os-release): Ubuntu 22.04.4 LTS
Kernel (e.g. uname -a): Linux 5.10.112-11.al8.x86_64 ✨ Add NodeMetric API #1 SMP Tue May 24 16:05:50 CST 2022 x86_64 x86_64 x86_64 GNU/Linux
@qwjhq Good advice. For the LoadAware scheduling plugin, the node capacity is more suitable to be the denominator than the node allocatable or the raw allocatable since the node usage in the NodeMetric reports the total usage of the machine. For some fine-grained cases, e.g. differentiating the proportion of the system usage and pods usage, perhaps we should add additional fields to describe.
PTAL @ZiMengSheng@hormes@zwzhang0107
default_estimator.go function EstimateNode
if node node.Annotations node.koordinator.sh/raw-allocatable not set
EstimateNode() will use node.Status.Allocatable by default why not node.Status.Capacity
node memory useage get from machine /proc/meminfo (i.MemTotal - i.MemAvailable) * 1024 is true, but filterNodeUsage memory percent is node_usage / node_Allocatable .
if use node_Allocatable is right why node memory usage use (i.MemTotal - i.MemAvailable) , not all pod in node use total, because there will some memory can not be use.
What you expected to happen:
EstimateNode() use node.Status.Capacity default or node memory useage use pod in node use real total
Environment:
Anything else we need to know:
The text was updated successfully, but these errors were encountered: