Skip to content

Commit 5578b96

Browse files
author
Brice Fallon-Freeman
authored
Merge pull request #3919 from bfallonf/followup_3916
Bug 1376585 Followup to 3916
2 parents effa489 + e2e5860 commit 5578b96

File tree

2 files changed

+37
-36
lines changed

2 files changed

+37
-36
lines changed

admin_guide/manage_nodes.adoc

+37-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ kubeletArguments:
402402
- "80"
403403
----
404404
405-
<1> Number of pods that can run on this kubelet.
405+
<1> xref:../admin_guide/manage_nodes.adoc#admin-guide-max-pods-per-node[Maximum number of pods that can run on this kubelet].
406406
<2> Resolver configuration file used as the basis for the container DNS
407407
resolution configuration.
408408
<3> The percent of disk usage after which image garbage collection is always run.
@@ -427,6 +427,42 @@ openshift_node_kubelet_args={'max-pods': ['40'], 'resolv-conf': ['/etc/resolv.co
427427
----
428428
====
429429

430+
[[admin-guide-max-pods-per-node]]
431+
=== Setting Maximum Pods Per Node
432+
433+
In the *_/etc/origin/node/node-config.yaml_* file, two parameters control the
434+
maximum number of pods that can be scheduled to a node: `pods-per-core` and
435+
`max-pods`. When both options are in use, the lower of the two limits the number
436+
of pods on a node.
437+
438+
`pods-per-core` sets the number of pods the node can run based on the number of
439+
processor cores on the node. For example, if `pods-per-core` is set to `10` on
440+
a node with 4 processor cores, the maxiumum number of pods allowed on the node
441+
will be 40.
442+
443+
====
444+
----
445+
kubeletArguments:
446+
pods-per-core:
447+
- 10
448+
----
449+
====
450+
451+
`max-pods` sets the number of pods the node can run to a fixed value, regardless
452+
of the properties of the node.
453+
454+
====
455+
----
456+
kubeletArguments:
457+
max-pods:
458+
- 250
459+
----
460+
====
461+
462+
Using the above example, the default value for `pods-per-core` is `10` and the
463+
default value for `max-pods` is `250`. This means that unless the node has 25
464+
cores or more, by default, `pods-per-core` will be the limiting factor.
465+
430466
[[manage-node-change-node-traffic-interface]]
431467
== Changing Node Traffic Interface
432468

admin_guide/overcommit.adoc

-35
Original file line numberDiff line numberDiff line change
@@ -198,41 +198,6 @@ quota.openshift.io/cluster-resource-override-enabled: "false"
198198
In an overcommitted environment, it is important to properly configure your node
199199
to provide best system behavior.
200200

201-
[[max-pods-per-node]]
202-
=== Setting Maximum Pods Per Node
203-
204-
There are two flags that control the number of pods that can be scheduled to the
205-
node: `pods-per-core` and `max-pods`. These flags interact and only the *lower*
206-
of the two will effectively limit the number of pods on a node.
207-
208-
`pods-per-core` sets the number of pods the node can run based on the number of
209-
processor cores on the node. As an example, if `pods-per-core` is set to `10` on
210-
a node with 4 processor cores, the maxiumum number of pods allowed on the node
211-
will be 40.
212-
213-
====
214-
----
215-
kubeletArguments:
216-
pods-per-core:
217-
- 10
218-
----
219-
====
220-
221-
`max-pods` sets the number of pods the node can run to a fixed value, regardless
222-
of the properties of the node.
223-
224-
====
225-
----
226-
kubeletArguments:
227-
max-pods:
228-
- 250
229-
----
230-
====
231-
232-
The default value for `pods-per-core` is `10` and the default value for `max-pods` is `250`.
233-
This means that unless the node has 25 cores or more, by default, `pods-per-core` will be
234-
the limiting factor.
235-
236201
[[enforcing-cpu-limits]]
237202
=== Enforcing CPU Limits
238203

0 commit comments

Comments
 (0)