diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-02-12 11:35:45 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-02-12 11:35:45 +0000 |
commit | 803c54051bdbfc1e4d695a2838906377e94611b6 (patch) | |
tree | 6ebd04d9c7a14241f53abee56ff3db503ef221cb /doc | |
parent | 713eaf10312dc781947a5aa5f341d09b45ea12b1 (diff) | |
parent | 4f64c005476a7aa3fb59e983c86b5d155abbd44f (diff) | |
download | glance-803c54051bdbfc1e4d695a2838906377e94611b6.tar.gz |
Merge "Add detail description of image_cache_max_size"
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/cache.rst | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/source/cache.rst b/doc/source/cache.rst index 720dbba48..8a12fb548 100644 --- a/doc/source/cache.rst +++ b/doc/source/cache.rst @@ -38,12 +38,14 @@ Controlling the Growth of the Image Cache ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The image cache has a configurable maximum size (the ``image_cache_max_size`` -configuration file option. However, when images are successfully returned -from a call to ``GET /images/<IMAGE_ID>``, the image cache automatically -writes the image file to its cache, regardless of whether the resulting -write would make the image cache's size exceed the value of -``image_cache_max_size``. In order to keep the image cache at or below this -maximum cache size, you need to run the ``glance-cache-pruner`` executable. +configuration file option). The ``image_cache_max_size`` is an upper limit +beyond which pruner, if running, starts cleaning the images cache. +However, when images are successfully returned from a call to +``GET /images/<IMAGE_ID>``, the image cache automatically writes the image +file to its cache, regardless of whether the resulting write would make the +image cache's size exceed the value of ``image_cache_max_size``. +In order to keep the image cache at or below this maximum cache size, +you need to run the ``glance-cache-pruner`` executable. The recommended practice is to use ``cron`` to fire ``glance-cache-pruner`` at a regular interval. |