Skip to content

Commit cbb8d6e

Browse files
authored
Merge pull request openshift#7697 from ahardin-rh/enterprise-3.9-stage
[enterprise-3.9] Bug 1512781, updated the Scenario math
2 parents 2df7058 + 9ffb81f commit cbb8d6e

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

admin_guide/out_of_resource_handling.adoc

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ If a node has 10 Gi of capacity, and you want to reserve 10% of that capacity fo
563563

564564
----
565565
capacity = 10 Gi
566-
system-reserved = 10 Gi * .01 = 1 Gi
566+
system-reserved = 10 Gi * .1 = 1 Gi
567567
----
568568

569569
The amount of allocatable resources becomes:
@@ -575,21 +575,24 @@ allocatable = capacity - system-reserved = 9 Gi
575575
This means by default, the scheduler will schedule pods that request 9 Gi of
576576
memory to that node.
577577

578-
If you want to turn on eviction so that eviction is triggered when the node observes that available memory falls below 10% of capacity for 30 seconds, or
579-
immediately when it falls below 5% of capacity, you need the scheduler to see allocatable as 8Gi. Therefore, ensure your system reservation covers the greater of your eviction thresholds.
578+
If you want to turn on eviction so that eviction is triggered when the node
579+
observes that available memory falls below 10% of capacity for 30 seconds, or
580+
immediately when it falls below 5% of capacity, you need the scheduler to see
581+
allocatable as 8Gi. Therefore, ensure your system reservation covers the greater
582+
of your eviction thresholds.
580583

581584
----
582585
capacity = 10 Gi
583-
eviction-threshold = 10 Gi * .05 = .5 Gi
584-
system-reserved = (10Gi * .01) + eviction-threshold = 1.5 Gi
585-
allocatable = capacity - system-reserved = 8.5 Gi
586+
eviction-threshold = 10 Gi * .1 = 1 Gi
587+
system-reserved = (10Gi * .1) + eviction-threshold = 2 Gi
588+
allocatable = capacity - system-reserved = 8 Gi
586589
----
587590

588591
Enter the following in the *_node-config.yaml_*:
589592
----
590593
kubeletArguments:
591594
system-reserved:
592-
- "8.5Gi"
595+
- "2Gi"
593596
eviction-hard:
594597
- memory.available<.5Gi
595598
eviction-soft:

0 commit comments

Comments
 (0)