Set a more generous default image cache size

Master images of non-trivial filesystems will run 3+G (even though
the qcow2 might be < 1G) so we need to make it big enough to be useful
:). Ideally we'd autotune this based on free space or something, but
for now, this is large enough to cache e.g. TripleO cluster workloads
but small enough to fit in test VMs. This patch sets the default cache
to 20G.

Change-Id: I11ca629589e8a90f727abcc5b1c7e72dbd9e4b0f
This commit is contained in:
Robert Collins 2014-07-15 12:12:21 +12:00 committed by Chris Krelle
parent b7a0b1be94
commit 9df2339f9b
2 changed files with 7 additions and 6 deletions

View File

@ -951,10 +951,10 @@
#pxe_bootfile_name=pxelinux.0
# Maximum size (in MiB) of cache for master images, including
# those in use (integer value)
#image_cache_size=1024
# those in use. (integer value)
#image_cache_size=20480
# Maximum TTL (in minutes) for old master images in cache
# Maximum TTL (in minutes) for old master images in cache.
# (integer value)
#image_cache_ttl=60

View File

@ -69,12 +69,13 @@ pxe_opts = [
default='pxelinux.0',
help='Neutron bootfile DHCP parameter.'),
cfg.IntOpt('image_cache_size',
default=1024,
default=20480,
help='Maximum size (in MiB) of cache for master images, '
'including those in use'),
'including those in use.'),
cfg.IntOpt('image_cache_ttl',
default=60,
help='Maximum TTL (in minutes) for old master images in cache'),
help='Maximum TTL (in minutes) for old master images in '
'cache.'),
]
LOG = logging.getLogger(__name__)