Ask Your Question
0

Prefetched and cached images in Glance

asked 2015-08-07 04:17:13 -0600

Tosugueur gravatar image

Hi everyone!
I just want to know how/where does glance store cached images (in remote compute nodes). I read this https://ask.openstack.org/en/question/4336/swift-as-backend-for-glance-http-500-error/ (post) but I still do not understand the mechanisms behind: how images are selected for caching? how they are updated? where are they stored by default? etc.
According to glance documentation http://docs.openstack.org/developer/glance/cache.html (here), the selection of cached images for example is done manually by the administrator of the system. Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-08-07 07:16:12 -0600

Hi, by default, cached images are stored in /var/lib/glance/image-cache/ (you can check it out at glance-api.conf under image_cache_dir option), You can configure what images are going to be cached at this option in nova.conf:

cache_images = all
(StrOpt) Cache glance images locally. all will cache all images, some will only cache images that have the image_property cache_in_nova=True, and none turns off caching entirely

Regards

edit flag offensive delete link more

Comments

Hi! Thank you very much!

Tosugueur gravatar imageTosugueur ( 2015-08-10 09:52:31 -0600 )edit

This solved my problem!

eblock gravatar imageeblock ( 2019-02-01 08:35:27 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-07 04:17:13 -0600

Seen: 365 times

Last updated: Aug 07 '15