Merge "Add more settings for glance image cache"
This commit is contained in:
commit
45a94c8710
@ -79,6 +79,22 @@ parameters:
|
|||||||
description: Enable Glance Image Cache
|
description: Enable Glance Image Cache
|
||||||
type: boolean
|
type: boolean
|
||||||
default: False
|
default: False
|
||||||
|
GlanceImageCacheDir:
|
||||||
|
description: Base directory that the Image Cache uses
|
||||||
|
type: string
|
||||||
|
default: '/var/lib/glance/image-cache'
|
||||||
|
GlanceImageCacheMaxSize:
|
||||||
|
description: >
|
||||||
|
The upper limit on cache size, in bytes, after which the cache-pruner
|
||||||
|
cleans up the image cache.
|
||||||
|
type: number
|
||||||
|
default: 10737418240
|
||||||
|
GlanceImageCacheStallTime:
|
||||||
|
description: >
|
||||||
|
The amount of time, in seconds, to let an image remain in the cache
|
||||||
|
without being accessed.
|
||||||
|
type: number
|
||||||
|
default: 86400
|
||||||
GlanceNfsShare:
|
GlanceNfsShare:
|
||||||
default: ''
|
default: ''
|
||||||
description: >
|
description: >
|
||||||
@ -398,6 +414,13 @@ outputs:
|
|||||||
glance::backend::cinder::cinder_store_user_name: 'glance'
|
glance::backend::cinder::cinder_store_user_name: 'glance'
|
||||||
glance::backend::cinder::cinder_store_password: {get_param: GlancePassword}
|
glance::backend::cinder::cinder_store_password: {get_param: GlancePassword}
|
||||||
- {}
|
- {}
|
||||||
|
-
|
||||||
|
if:
|
||||||
|
- glance_cache_enabled
|
||||||
|
- glance::api::image_cache_dir: {get_param: GlanceImageCacheDir}
|
||||||
|
glance::api::image_cache_max_size: {get_param: GlanceImageCacheMaxSize}
|
||||||
|
glance::api::image_cache_stall_time: {get_param: GlanceImageCacheStallTime}
|
||||||
|
- {}
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- glance_netapp_nfs_enabled
|
- glance_netapp_nfs_enabled
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add GlanceImageCacheDir parameter to set base directory location
|
||||||
|
that the Image Cache uses.
|
||||||
|
|
||||||
|
Add GlanceImageCacheMaxSize parameter to set the upper limit on cache
|
||||||
|
size, in bytes, after which the cache-pruner cleans up the image cache.
|
||||||
|
|
||||||
|
Add GlanceImageCacheStallTime parameter to set the amount of time to let
|
||||||
|
an image remain in the cache without being accessed.
|
Loading…
Reference in New Issue
Block a user