From e896b21dbb7ccd85d5b2e9b546565d43d3ea5bfb Mon Sep 17 00:00:00 2001 From: Fansong Zeng Date: Thu, 28 Dec 2023 09:57:23 +0800 Subject: [PATCH] fix load-aware-descheduling user-manuals (#157) Signed-off-by: Fansong Zeng --- docs/user-manuals/load-aware-descheduling.md | 10 +++++----- .../current/user-manuals/load-aware-descheduling.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/user-manuals/load-aware-descheduling.md b/docs/user-manuals/load-aware-descheduling.md index c1773dc60..0f7de1951 100644 --- a/docs/user-manuals/load-aware-descheduling.md +++ b/docs/user-manuals/load-aware-descheduling.md @@ -15,16 +15,16 @@ The `LowNodeLoad` plugin has two most important parameters: Take the following figure as an example, `lowThresholds` is 45%, `highThresholds` is 70%, we can classify nodes into three categories: -1. Idle Node. Nodes with resource utilization below 45%; -2. Normal Node. For nodes whose resource utilization is higher than 45% but lower than 70%, this load water level range is a reasonable range we expect -3. Hotspot Node. If the node resource utilization rate is higher than 70%, the node will be judged as unsafe and belongs to the hotspot node, and some pods should be expelled to reduce the load level so that it does not exceed 70%. +1. Idle Node. Nodes with resource utilization below lowThresholds(45%); +2. Normal Node. For nodes whose resource utilization is higher than lowThresholds but lower than highThresholds(70%), this load water level range is a reasonable range we expect +3. Hotspot Node. If the node resource utilization rate is higher than highThresholds, the node will be judged as unsafe and belongs to the hotspot node, and some pods should be expelled to reduce the load level so that it does not exceed 70%. ![image](/img/low-node-load.png) -After identifying which nodes are hotspots, descheduler will perform a eviction/migration operation to evict some Pods from hotspot nodes to idle nodes. +After identifying which nodes are hotspots, descheduler will perform a eviction/migration operation to evict some Pods from hotspot nodes to idle nodes. If the number of ```Idle Node`````` is 0 or the number of ```Hotspot Node`````` is 0, the descheduler does nothing. If the total number of idle nodes in a cluster is not many, descheduling will be terminated. This can be helpful in large clusters where some nodes may be underutilized frequently or for short periods of time. By default, `numberOfNodes` is set to zero. This capability can be enabled by setting the parameter `numberOfNodes`. -Before migration, descheduler will calculate the actual free capacity to ensure that the sum of the actual utilization of the Pods to be migrated does not exceed the total free capacity in the cluster. These actual free capacities come from idle nodes, and the actual free capacity of an idle node = `(highThresholds - current load of the node) * total capacity of the node`. Suppose the load level of node A is 20%, the highThresholdss is 70%, and the total CPU of node A is 96C, then `(70%-20%) * 96 = 48C`, and this 48C is the free capacity that can be carried. +Before migration, descheduler will calculate the actual free capacity to ensure that the sum of the actual utilization of the Pods to be migrated does not exceed the total free capacity in the cluster. These actual free capacities come from idle nodes, and the actual free capacity of an idle node = `(highThresholds - current load of the node) * total capacity of the node`. Suppose the load level of node A is 20%, the highThresholds is 70%, and the total CPU of node A is 96C, then `(70%-20%) * 96 = 48C`, and this 48C is the free capacity that can be carried. In addition, when migrating hotspot nodes, the Pods on the nodes will be filtered. Currently, descheduler supports multiple filtering parameters, which can avoid migration and expulsion of very important Pods: diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-manuals/load-aware-descheduling.md b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-manuals/load-aware-descheduling.md index ea6247ce5..c278cdeaf 100644 --- a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-manuals/load-aware-descheduling.md +++ b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-manuals/load-aware-descheduling.md @@ -21,7 +21,7 @@ LowNodeLoad插件有两个最重要的参数: ![image](/img/low-node-load.png) -在识别出哪些节点是热点后,koord-descheduler 将会执行迁移驱逐操作,驱逐热点节点中的部分 Pod 到空闲节点上。 +在识别出哪些节点是热点后,koord-descheduler 将会执行迁移驱逐操作,驱逐热点节点中的部分 Pod 到空闲节点上。如果 Idle Node 数量是 0 或者 Hotspot Node 数量是 0,则 descheduler 不会执行任何操作。 如果一个集群中空闲节点的总数并不是很多时会终止重调度。这在大型集群中可能会有所帮助,在大型集群中,一些节点可能会经常或短时间使用不足。默认情况下,`numberOfNodes` 设置为零。可以通过设置参数 `numberOfNodes` 来开启该能力。