Skip to content

Commit

Permalink
Merge pull request #617 from fmount/cache_sample
Browse files Browse the repository at this point in the history
Document image_cache_stall_time parameter
  • Loading branch information
openshift-merge-bot[bot] authored Sep 3, 2024
2 parents 876f3fe + 5b46a3a commit 3a3f49a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions config/samples/image_cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,19 @@ of `image_cache_max_size`, which is defined by the `size` parameter exposed in
the `imageCache` section of the `Glance` CR. In order to keep the image cache
at or below this maximum cache size, Glance provides utilities that can be
periodically executed.
The glance-operator defines a `cronJob` Pod that periodically executes the
The glance-operator defines a `cronJob` resource that periodically executes the
`glance-cache-pruner` utility, with the purpose of keeping under the
`image_cache_max_size` value the image cache size.
Over time, the image cache can accumulate image files that are either in a
stalled or invalid state. Stalled image files are the result of an image cache
write failing to complete. Invalid image files are the result of an image file
not being written properly to disk.
To remove these types of files, the `glance-operator` defines a `cronJob` Pod
that periodically executes the `glance-cache-cleaner` utility.
The amount of time an incomplete image can stay in the cache is defined by the
`image_cache_stall_time` parameter (which defaults to 86400 seconds), after
this time the incomplete or stalled image is qualified to be deleted from the
`Glance` cache.
To remove these types of files, the `glance-operator` defines a `cronJob`
resource that periodically executes the `glance-cache-cleaner` utility.

You can find more about image-cache configuration options in the
[upstream](https://docs.openstack.org/glance/latest/admin/cache.html) documentation.
Expand Down

0 comments on commit 3a3f49a

Please sign in to comment.