Make image_cache_max_size user configurable

image_cache_max_size should be less than the size of the container. It defaults
to 10GiB which is greater than the current default container size for glance of
5GB.

Change-Id: I58ad98ba3cf83a63dbe346659148aba53dafd140
Related-Bug: 1403487
This commit is contained in:
Sam Yaple 2014-12-17 06:22:02 -06:00
parent ec3a14f235
commit 362e727dab
2 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,8 @@ glance_swift_store_region: SomeRegion
# `publicURL` to communicate with swift over the public network # `publicURL` to communicate with swift over the public network
glance_swift_store_endpoint_type: internalURL glance_swift_store_endpoint_type: internalURL
glance_notification_driver: noop glance_notification_driver: noop
# Set glance cache size in bytes, should be less than container size. Defaults to 10GiB
#glance_image_cache_max_size: 4294967296
## Heat Options ## Heat Options
heat_stack_domain_admin_password: heat_stack_domain_admin_password:

View File

@ -7,7 +7,7 @@ admin_tenant_name = service
use_syslog = False use_syslog = False
image_cache_dir = /var/lib/glance/cache/ image_cache_dir = /var/lib/glance/cache/
image_cache_stall_time = 86400 image_cache_stall_time = 86400
image_cache_max_size = 10737418240 image_cache_max_size = {{ glance_image_cache_max_size|default(10737418240) }}
registry_host = {{ registry_host }} registry_host = {{ registry_host }}
registry_port = 9191 registry_port = 9191
auth_url = {{ auth_admin_uri }} auth_url = {{ auth_admin_uri }}