Bug 1707834
| Summary: | Cluster samples operator has a high read rate from operator | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Gabe Montero <gmontero> |
| Component: | Templates | Assignee: | Gabe Montero <gmontero> |
| Status: | CLOSED ERRATA | QA Contact: | XiuJuan Wang <xiuwang> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.1.0 | CC: | adam.kaplan, aos-bugs, bparees, ccoleman, gmontero, jokerman, mmccomas, pweil, wzheng, xiuwang |
| Target Milestone: | --- | ||
| Target Release: | 4.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Even though the samples operator maintained controller/informer based watches for secrets, imagestreams, and templates, it was still using a direct openshift go client to GET those resources during processing.
Consequence: Unnecessary activity against the OpenShift API server was a result.
Fix: Leverage the informer/lister API to leverage the cache maintained in the controller via its watches on those api object types.
Result: GET Activity against the OpenShift API server has been reduced.
|
Story Points: | --- |
| Clone Of: | 1703233 | Environment: | |
| Last Closed: | 2019-10-16 06:28:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1703233 | ||
| Bug Blocks: | |||
|
Description
Gabe Montero
2019-05-08 14:03:14 UTC
OK PR https://github.com/openshift/cluster-samples-operator/pull/146 has merged. It now employs the informer/lister for GETs on secrets, imagestreams, and templates, in addition to the use for the operator's config object which occurred with https://bugzilla.redhat.com/show_bug.cgi?id=1703233 Not when you run the query we settled on with the last bug, I saw only 0's for GETs for those 4 types. You'll only see GET activity for the clusteroperator object. As we are not watching those objects, there is not informer/lister cache to leverage. And we do NOT want to start watching that type at this time. Verified with 4.2.0-0.ci-2019-05-23-003410 payload. Only GET activity for the clusteroperator is shown, the GET events for configs,secrets, imagestreams, and templates all gone. 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-2019:2922 |