| Summary: | Scalability: Component Outlines tab in /conductor/pool_families is slow when there are a large number of images | |||
|---|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Richard Su <rwsu> | |
| Component: | aeolus-conductor | Assignee: | Jiri Tomasek <jtomasek> | |
| Status: | CLOSED ERRATA | QA Contact: | wes hayutin <whayutin> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 1.0.0 | CC: | akarol, asettle, athomas, cpelland, dajohnso, deltacloud-maint, hbrock, juwu, morazi, rlandy, ssachdev | |
| Target Milestone: | rc | Keywords: | ZStream | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: |
A large number of images increased the number of queries to Image Warehouse and degraded the "Images" page load time. This update paginates the results in "Images" and reduces the load time.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 824512 (view as bug list) | Environment: | ||
| Last Closed: | 2012-12-04 14:58:45 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 824512 | |||
|
Description
Richard Su
2012-03-14 01:08:42 UTC
The source of the slowness is in to two places in app/views/images/_list.html.haml. Both are indeed calls to iwhd.
The first is these two lines to fetch the name and version of the OS:
= image.os.name.empty? ? "N/A" : image.os.name
= image.os.version.empty? ? "N/A" : image.os.version
It is the call on the os method that is expensive. Removing these two lines eliminates 24 seconds.
The second is a call to retrieve the last push or last build timestamp.
= Time.at(image.latest_pushed_or_unpushed_build.timestamp.to_f) rescue ''
Removing this lines saves 16 seconds.
added images pagination in commit cc30f44ae11fd8c3096564477e777c1cea0f295b I'm flagging this for Z since it is a legit high-severity issue and there is already a fix. Wes, Dave, are you comfortable with risk on the fix? Note: the patchfix related to this BZ has been pushed into 1.0.1 (commit 4178f9f320dd99c60c5f4e0501f1d58883d4fc9f) 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. http://rhn.redhat.com/errata/RHEA-2012-1516.html |