Ask Your Question

Prefetched and cached images in Glance

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

Tosugueur gravatar image

Hi everyone!
I just want to know how/where does glance store cached images (in remote compute nodes). I read this (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 (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

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

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


edit flag offensive delete link more


Hi! Thank you very much!

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

This solved my problem!

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 716 times

Last updated: Aug 07 '15