Caching of images in Openstack glance in a multinode set up [closed]
Hi everyone!
I just want to understand/setup caching of glance images in a multinode environment,where there are
multiple controller and compute nodes
1.Where should the image caching be done,whether it is on the control/compute node?
2.If it is on the compute node, How should I enable the caching of Images on the compute node?
and how should I manage it?
3.how images are selected for caching? how they are updated? And where are they stored?
My Openstack set up:
Openstack version:5.2.0
Deployed as openstack-helm(Openstack deployed on K8S nodes)-All the services are running as PODS on controller
node.
There is one Controller node-glance api and glance-registry is running as K8s POD here, and there are two compute
nodes and there are no glance service running on compute nodes.
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, Using this I can configure
manually,but I am looking on how to enable caching on all compute nodes while deploying.
Thank you!
The page you reference starts with
This means that this cache is on the controller where glance-api runs.
AFAIK Nova caches images on compute nodes anyway, and without operator intervention.
But What I did see is Image is getting cached in the glance-api pod itself in the same dir as image_cache_dir and this is running in controller node.
As I said. This cache is on the controller where glance-api runs.
And: Nova caches images on compute nodes anyway, and without operator intervention. Nova. Not Glance.
If I have to follow the Instance creation steps as mentioned in the diagram: https://maestropandy.wordpress.com/2016/05/26/openstack-instance-creation-request-work-flow/ (https://maestropandy.wordpress.com/20...) With Cache configured ,Instance creation flow is Nova-Compute-->Glance Api-->Picks Cached Image instead of Hitting Img store?
The fact that this page includes references to Quantum doesn't inspire a lot of confidence. Quantum was renamed Neutron around 2013, I think. There is a chance this is outdated.
But yes, instead of accessing the store, Glance uses the image cache. Much faster.