From d5fa60bdd51051f0b721fc8b48037883ffa264d7 Mon Sep 17 00:00:00 2001 From: Mike Dame Date: Fri, 5 Mar 2021 09:34:04 -0500 Subject: [PATCH] Clarify resource percentage calculation in README --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7bde0588f..ecd07a303 100644 --- a/README.md +++ b/README.md @@ -167,8 +167,11 @@ in the hope that recreation of evicted pods will be scheduled on these underutil parameters of this strategy are configured under `nodeResourceUtilizationThresholds`. The under utilization of nodes is determined by a configurable threshold `thresholds`. The threshold -`thresholds` can be configured for cpu, memory, and number of pods in terms of percentage. If a node's -usage is below threshold for all (cpu, memory, and number of pods), the node is considered underutilized. +`thresholds` can be configured for cpu, memory, and number of pods in terms of percentage (the percentage is +calculated as the current resources requested on the node vs [total allocatable](https://kubernetes.io/docs/concepts/architecture/nodes/#capacity). +For pods, this means the number of pods on the node as a fraction of the pod capacity set for that node). + +If a node's usage is below threshold for all (cpu, memory, and number of pods), the node is considered underutilized. Currently, pods request resource requirements are considered for computing node resource utilization. There is another configurable threshold, `targetThresholds`, that is used to compute those potential nodes