Skip to content

Commit 9b73a10

Browse files
authored
Merge pull request #86885 from mburke5678/nodes-eviction-pressure
OCPBUGS48047 As per the document it does not states that 'evictionPressureTransitionPeriod configuration' cannot be set to '0s'.
2 parents 328e788 + 49cce9a commit 9b73a10

5 files changed

+15
-9
lines changed

modules/microshift-low-latency-config-yaml.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ kubelet: <1>
4444
memory.available: "100Mi" # <9>
4545
nodefs.available: "10%" # <10>
4646
nodefs.inodesFree: "5%" # <11>
47-
evictionPressureTransitionPeriod: 0s
47+
evictionPressureTransitionPeriod: 5m <12>
4848
# ...
4949
----
5050
<1> If you change the CPU or memory managers in the kubelet configuration, you must remove files that cache the previous configuration. Restart the host to remove them automatically, or manually remove the `/var/lib/kubelet/cpu_manager_state` and `/var/lib/kubelet/memory_manager_state` files.
@@ -58,6 +58,7 @@ kubelet: <1>
5858
<9> In this example, the `evictionHard.memory.available` parameter means that the pods are evicted when the available memory of the node drops below 100MiB.
5959
<10> In this example, the `evictionHard.nodefs.available` parameter means that the pods are evicted when the main filesystem of the node has less than 10% available space.
6060
<11> In this example, the `evictionHard.nodefs.inodesFree` parameter means that the pods are evicted when more than 15% of the node's main filesystem's inodes are in use.
61+
<12> For container garbage collection: The duration to wait before transitioning out of an eviction pressure condition. Setting the `evictionPressureTransitionPeriod` parameter to `0` configures the default value of 5 minutes.
6162
6263
.Verification
6364

@@ -68,4 +69,4 @@ kubelet: <1>
6869
. Tune your operating system. For example, configure and activate a TuneD profile.
6970
. Optional: Configure automatic enablement of your TuneD profile.
7071
. Optional: If you are using the x86_64 architecture, you can install {op-system-rt-kernel}.
71-
. Prepare your {microshift-short} workloads for low latency.
72+
. Prepare your {microshift-short} workloads for low latency.

modules/microshift-low-latency-install-kernelrt-rhel-edge.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ kubelet:
6060
memory.available: 100Mi
6161
nodefs.available: 10%
6262
nodefs.inodesFree: 5%
63-
evictionPressureTransitionPeriod: 0s
63+
evictionPressureTransitionPeriod: 5m
6464
"""
6565
6666
[[customizations.files]]
@@ -88,4 +88,4 @@ reboot_after_apply: True
8888
. Complete the image building process.
8989
. If you have not completed the previous steps for enabling low latency for your {microshift-short} cluster, do so now. Update the blueprint with the information gathered in those steps.
9090
. If you have not configured workload partitioning, do so now.
91-
. Prepare your {microshift-short} workloads for low latency.
91+
. Prepare your {microshift-short} workloads for low latency.

modules/microshift-low-latency-rhel-edge-blueprint-rtk.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ kubelet:
7979
memory.available: 100Mi
8080
nodefs.available: 10%
8181
nodefs.inodesFree: 5%
82-
evictionPressureTransitionPeriod: 0s
82+
evictionPressureTransitionPeriod: 5m
8383
"""
8484
8585
[[customizations.files]]
@@ -101,4 +101,4 @@ data = """
101101
profile: microshift-baseline
102102
reboot_after_apply: True
103103
"""
104-
----
104+
----

modules/nodes-nodes-garbage-collection-configuring.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ spec:
102102
nodefs.inodesFree: "4%"
103103
imagefs.available: "10%"
104104
imagefs.inodesFree: "5%"
105-
evictionPressureTransitionPeriod: 0s <7>
105+
evictionPressureTransitionPeriod: 3m <7>
106106
imageMinimumGCAge: 5m <8>
107107
imageGCHighThresholdPercent: 80 <9>
108108
imageGCLowThresholdPercent: 75 <10>
@@ -115,7 +115,7 @@ spec:
115115
<5> For container garbage collection: Grace periods for the soft eviction. This parameter does not apply to `eviction-hard`.
116116
<6> For container garbage collection: Eviction thresholds based on a specific eviction trigger signal.
117117
For `evictionHard` you must specify all of these parameters. If you do not specify all parameters, only the specified parameters are applied and the garbage collection will not function properly.
118-
<7> For container garbage collection: The duration to wait before transitioning out of an eviction pressure condition.
118+
<7> For container garbage collection: The duration to wait before transitioning out of an eviction pressure condition. Setting the `evictionPressureTransitionPeriod` parameter to `0` configures the default value of 5 minutes.
119119
<8> For image garbage collection: The minimum age for an unused image before the image is removed by garbage collection.
120120
<9> For image garbage collection: The percent of disk usage (expressed as an integer) that triggers image garbage collection.
121121
<10> For image garbage collection: The percent of disk usage (expressed as an integer) that image garbage collection attempts to free.

modules/nodes-nodes-garbage-collection-containers.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@ For `evictionHard` you must specify all of these parameters. If you do not spec
4141

4242
If a node is oscillating above and below a soft eviction threshold, but not exceeding its associated grace period, the corresponding node would constantly oscillate between `true` and `false`. As a consequence, the scheduler could make poor scheduling decisions.
4343

44-
To protect against this oscillation, use the `eviction-pressure-transition-period` flag to control how long {product-title} must wait before transitioning out of a pressure condition. {product-title} will not set an eviction threshold as being met for the specified pressure condition for the period specified before toggling the condition back to false.
44+
To protect against this oscillation, use the `evictionpressure-transition-period` flag to control how long {product-title} must wait before transitioning out of a pressure condition. {product-title} will not set an eviction threshold as being met for the specified pressure condition for the period specified before toggling the condition back to false.
45+
46+
[NOTE]
47+
====
48+
Setting the `evictionPressureTransitionPeriod` parameter to `0` configures the default value of 5 minutes. You cannot set an eviction pressure transition period to zero seconds.
49+
====

0 commit comments

Comments
 (0)