summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-02-12 11:35:45 +0000
committerGerrit Code Review <review@openstack.org>2015-02-12 11:35:45 +0000
commit803c54051bdbfc1e4d695a2838906377e94611b6 (patch)
tree6ebd04d9c7a14241f53abee56ff3db503ef221cb /doc
parent713eaf10312dc781947a5aa5f341d09b45ea12b1 (diff)
parent4f64c005476a7aa3fb59e983c86b5d155abbd44f (diff)
downloadglance-803c54051bdbfc1e4d695a2838906377e94611b6.tar.gz
Merge "Add detail description of image_cache_max_size"
Diffstat (limited to 'doc')
-rw-r--r--doc/source/cache.rst14
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.