Skip to content

Commit 77135d9

Browse files
committed
OSDOCS-30986 Update garbage collection with eviction conditions
1 parent fd4783f commit 77135d9

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ As an administrator, you can configure how {product-title} performs garbage coll
1616

1717
You can configure any combination of the following:
1818

19-
* Soft eviction for containers
19+
* Soft eviction for containers
2020
* Hard eviction for containers
2121
* Eviction for images
2222

23-
For the soft container eviction you can also configure a grace period before the eviction.
24-
2523
.Prerequisites
2624

2725
. Obtain the label associated with the static `MachineConfigPool` CRD for the type of node you want to configure.

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ When eviction thresholds are set for garbage collection, the node tries to keep
1515

1616
* *eviction-hard* - A hard eviction threshold has no grace period, and if observed, {product-title} takes immediate action.
1717

18+
The following table lists the eviction thresholds:
19+
20+
.Variables for configuring container garbage collection
21+
|===
22+
| Node condition | Eviction signal | Description
23+
24+
| MemoryPressure
25+
| `memory.available`
26+
| The available memory on the node.
27+
28+
| DiskPressure
29+
a| * `nodefs.available`
30+
* `nodefs.inodesFree`
31+
* `imagefs.available`
32+
* `imagefs.inodesFree`
33+
| The available disk space or inodes on the node root file system, `nodefs`, or image file system, `imagefs`.
34+
|===
35+
1836
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.
1937

2038
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.

0 commit comments

Comments
 (0)