Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1371309 - enable pods-per-core and max-pods in node configuration
enable pods-per-core and max-pods in node configuration
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Pod (Show other bugs)
3.3.1
All Linux
high Severity high
: ---
: ---
Assigned To: Derek Carr
Weihua Meng
: NeedsTestCase
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-29 16:51 EDT by Jeremy Eder
Modified: 2017-03-08 13 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-01-18 07:52:37 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 12:23:26 EST

  None (edit)
Description Jeremy Eder 2016-08-29 16:51:13 EDT
Description of problem:

In the kubernetes 1.3 cycle, we added a feature to get away from a single max-pods value.

https://github.com/kubernetes/kubernetes/pull/25813

"pods-per-core" is a simple scaling factor that allows us to get past the previous limit of 110 on larger systems.

OpenShift should lay down a config like so (via installer):

--pods-per-core=10 
--max-pods=250

Which, when compared with openshift 3.2 max-pods=110, the effective behavior of the new pods-per-core algorithm:

For 1-10 cores, max-pods is reduced
For 11+ cores, max-pods is increased

Examples:

8 cores:
8 cores * pods-per-core(10) = 80
80 < max-pods, so the limit is 80 pods.

16 cores:
16 cores * pods-per-core(10) = 160
160 < max-pods, so the limit is 160 pods.

32 cores * pods-per-core(10) = 320
320 > max-pods, so max-pods wins and the limit is 250
Comment 7 Weihua Meng 2016-11-03 05:37:24 EDT
Verified, Fixed.
openshift v3.4.0.19+346a31d
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0

1. --pods-per-core=10
Capacity:
 alpha.kubernetes.io/nvidia-gpu:	0
 cpu:					2
 memory:				3881932Ki
 pods:					20
Allocatable:
 alpha.kubernetes.io/nvidia-gpu:	0
 cpu:					2
 memory:				3881932Ki
 pods:					20

2. --pods-per-core=0
Capacity:
 alpha.kubernetes.io/nvidia-gpu:	0
 cpu:					2
 memory:				3881932Ki
 pods:					250
Allocatable:
 alpha.kubernetes.io/nvidia-gpu:	0
 cpu:					2
 memory:				3881932Ki
 pods:					250
Comment 9 errata-xmlrpc 2017-01-18 07:52:37 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0066

Note You need to log in before you can comment on or make changes to this bug.