Bug 1421834 - Metrics Resolution of Heapster Image Should be 30s to Match cAdvisor
Summary: Metrics Resolution of Heapster Image Should be 30s to Match cAdvisor
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Hawkular
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Matt Wringe
QA Contact: Peng Li
URL:
Whiteboard: aos-scalability-35
Depends On:
Blocks: 1421860
TreeView+ depends on / blocked
 
Reported: 2017-02-13 19:36 UTC by Solly Ross
Modified: 2017-07-24 14:11 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1421860 (view as bug list)
Environment:
Last Closed: 2017-04-12 19:12:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 22:50:07 UTC

Description Solly Ross 2017-02-13 19:36:04 UTC
In Kubernetes, we specify a cAdvisor housekeeping interval of 10s.  cAdvisor has backoff logic that could move this up to 15s, plus jitter logic that could double that, leaving us with an actual max housekeeping interval of 30s:

https://github.com/kubernetes/kubernetes/blob/master/vendor/github.com/google/cadvisor/manager/container.go#L382.

Thus, our Heapster image needs to have a metrics_resolution of at least 30s
in order to avoid reading the same metrics batch twice from the node, which causes Heapster to skip rate calculation, which causes CPU metrics to not appear.

Comment 1 Matt Wringe 2017-02-13 19:37:41 UTC
Does this only need to be applied to 3.5? or is this logic also in older versions like 3.4?

Comment 2 Matt Wringe 2017-02-13 21:45:21 UTC
The templates should now be updated to support the increased value.

Comment 3 Peng Li 2017-02-14 01:06:48 UTC
Verified with openshift-ansible master branch, https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_metrics/defaults/main.yaml, the default value has been set from 15s to 30s.

Comment 6 errata-xmlrpc 2017-04-12 19:12:36 UTC
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:0884


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