Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interface to get store weight from memory #3

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

bbezak
Copy link
Member

@bbezak bbezak commented Feb 6, 2025

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, introducing new interface in glance_store which will directly get the weight of the store from memory and return it back to user.

NOTE: Since the current module does not have any test coverage, corresponding tests will be added in glance once we release glance_store with this change.

Related-Bug: #2086675
Change-Id: If6861f3271f50680af271090b516f2add6e392b9 (cherry picked from commit bb45873)

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, introducing new interface in glance_store which
will directly get the weight of the store from memory and return
it back to user.

NOTE: Since the current module does not have any test coverage,
corresponding tests will be added in glance once we release
glance_store with this change.

Related-Bug: #2086675
Change-Id: If6861f3271f50680af271090b516f2add6e392b9
(cherry picked from commit bb45873)
@priteau priteau merged commit f7e8886 into stackhpc/2024.1 Feb 11, 2025
3 checks passed
@priteau priteau deleted the glance_rbd_slow branch February 11, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants