Bug 1489501
Summary: | Memory usage for origin-master is abnormally high | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | David Moreau Simard <dmsimard> | ||||||||||
Component: | Master | Assignee: | Stefan Schimanski <sttts> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Wang Haoran <haowang> | ||||||||||
Severity: | low | Docs Contact: | |||||||||||
Priority: | low | ||||||||||||
Version: | unspecified | CC: | aos-bugs, dmsimard, jokerman, mmccomas, nagrawal | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | 4.2.0 | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2019-08-02 09:09:56 UTC | Type: | Bug | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
David Moreau Simard
2017-09-07 14:46:33 UTC
Created attachment 1323237 [details]
Heap shortly after restarting origin-master
Created attachment 1323238 [details]
Heap once origin-master is using most of the available RAM
Created attachment 1323239 [details]
origin-master RAM usage screenshot
Created attachment 1323240 [details]
origin-master logs
From the master log, it seems like you are getting a LOT of images. Can you please check how many images you have via `oc get images | wc -l` (as admin)? If there are many images, seems like you need to run prunning? How often you run the 100 builds? If you never prune, it means OpenShift is keeping record about every image you ever build. There is default "re-list" interval (which is ~15 minutes) that will load all images into a cache for the API server. That might explain why the memory usage went up after 15 minutes. What I can recommend is setup really aggressive pruning so you get rid of images that are not referenced by any image stream. That should free up the cache and cause the memory usage go down. As per discussed, a namedspaced 'oc get images -n <project> | wc -l' returned 39469. We build those images several times a day as part of a continuous testing and integration pipeline. I'll read the documentation on pruning and see if it helps. FWIW memory usage on OpenShift 3.7 seems much, much better. Some stats at a quick glance so far of this new deployment: - 10619 images - 8203 tags - 248 image streams - 341GB disk space used # free -m total used free shared buff/cache available Mem: 7822 3026 390 1 4405 4425 Swap: 0 0 0 Seems to be fine since 3.7. Closing. |