Overview
The image cache stores a local copy of frequently-used images on each compute node, eliminating repeated downloads from the central image service at instance launch time. Enabling the cache is most impactful when the same image is used to launch many instances on the same compute node — typical in auto-scaling and cluster workloads.Cache Configuration
Configure cache settings via XDeploy globals before deploying:| Setting | Default | Description |
|---|---|---|
glance_enable_image_cache | no | Enable the image cache |
glance_cache_max_size | 10 GB | Maximum total size of the cache directory |
glance_cache_staleness_seconds | 86400 | How long a cached entry remains fresh (seconds) |
glance_cache_prefetcher_delay | 300 | Seconds between pre-fetch sweep runs |
Image cache configuration in XDeploy globals
Apply image cache configuration
How the Cache Works
Verify Cache Status
Check cache directory on Image API node
View cached image entries
View pending pre-fetch queue
Manual Cache Management
- Pre-fetch an image
- Clear the cache
- Trigger pre-fetch manually
Queue an image for pre-caching before its first use:The pre-fetcher picks it up on the next sweep interval.
Queue image for pre-fetch
When to Use the Cache
Best case: Many instances from same image
Best case: Many instances from same image
The cache provides the greatest benefit when the same image is repeatedly used on
the same compute node — typical patterns include:
- Auto-scaling groups launching many identical instances
- Development clusters where all developers use the same base image
- CI/CD pipelines that launch many ephemeral test instances
Limited benefit: RBD-to-RBD cloning
Limited benefit: RBD-to-RBD cloning
When both the Image Service and Block Storage use Xloud Distributed Storage (RBD),
instance launches use zero-copy RBD clones. This already achieves near-instantaneous
boot times regardless of image size — the image cache provides minimal additional
benefit in this configuration.
Next Steps
Storage Backends
Configure the primary storage backend that feeds the cache.
Architecture
Understand where the cache fits in the overall Image Service topology.
Admin Troubleshooting
Diagnose cache effectiveness and storage issues.
Quotas
Control storage consumption to ensure cache space is not exhausted.