forked from openstack/glance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix performance glitch while sorting image locations
Some of the available glance stores like file, cinder etc has capability to reuse already initiated driver (DRIVER_REUSABLE = 0b01000000). In Caracal we have added a feature to sort image locations based on store weight. As RBD driver of glance does not have this reuse capability, during image list API call it initializes the RBD driver for each of the available image which is causing noticable delay in list call. To avoid this, using new interface added in glance_store which will directly get the weight of the store from memory and return it back to user. Depends-On: https://review.opendev.org/c/openstack/glance_store/+/940531 Closes-Bug: #2086675 Change-Id: I662ba19697e03917ca999920ea7be93a0b2a8296 (cherry picked from commit ce537e073b2e7efb332d719bb45bf20c403c140a)
- Loading branch information
1 parent
d0be1be
commit 78f1f81
Showing
2 changed files
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters