Support [cache] memcache_pool_flush_on_reconnect
Depends-on: https://review.opendev.org/902861 Change-Id: Ic5e40835abb923d2e9f2243e7b8f7241ab924670
This commit is contained in:
parent
63c8a87b9a
commit
0470ca135b
@ -103,6 +103,11 @@
|
||||
# client connection. (integer value)
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*memcache_pool_flush_on_reconnect*]
|
||||
# (Optional) Global toggle if memcache will be flushed on reconnect.
|
||||
# (oslo_cache.memcache_pool backend only)
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*manage_backend_package*]
|
||||
# (Optional) Whether to install the backend package for the cache.
|
||||
# Defaults to true
|
||||
@ -158,6 +163,7 @@ class zaqar::cache (
|
||||
$memcache_pool_maxsize = $facts['os_service_default'],
|
||||
$memcache_pool_unused_timeout = $facts['os_service_default'],
|
||||
$memcache_pool_connection_get_timeout = $facts['os_service_default'],
|
||||
$memcache_pool_flush_on_reconnect = $facts['os_service_default'],
|
||||
$manage_backend_package = true,
|
||||
$tls_enabled = $facts['os_service_default'],
|
||||
$tls_cafile = $facts['os_service_default'],
|
||||
@ -186,6 +192,7 @@ class zaqar::cache (
|
||||
memcache_pool_maxsize => $memcache_pool_maxsize,
|
||||
memcache_pool_unused_timeout => $memcache_pool_unused_timeout,
|
||||
memcache_pool_connection_get_timeout => $memcache_pool_connection_get_timeout,
|
||||
memcache_pool_flush_on_reconnect => $memcache_pool_flush_on_reconnect,
|
||||
manage_backend_package => $manage_backend_package,
|
||||
tls_enabled => $tls_enabled,
|
||||
tls_cafile => $tls_cafile,
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``zaqar::cache::memcache_pool_flush_on_reconnect`` parameter has
|
||||
been added.
|
@ -28,6 +28,7 @@ describe 'zaqar::cache' do
|
||||
:memcache_pool_maxsize => '<SERVICE DEFAULT>',
|
||||
:memcache_pool_unused_timeout => '<SERVICE DEFAULT>',
|
||||
:memcache_pool_connection_get_timeout => '<SERVICE DEFAULT>',
|
||||
:memcache_pool_flush_on_reconnect => '<SERVICE DEFAULT>',
|
||||
:tls_enabled => '<SERVICE DEFAULT>',
|
||||
:tls_cafile => '<SERVICE DEFAULT>',
|
||||
:tls_certfile => '<SERVICE DEFAULT>',
|
||||
@ -57,6 +58,7 @@ describe 'zaqar::cache' do
|
||||
:memcache_pool_maxsize => '10',
|
||||
:memcache_pool_unused_timeout => '120',
|
||||
:memcache_pool_connection_get_timeout => '360',
|
||||
:memcache_pool_flush_on_reconnect => false,
|
||||
:tls_enabled => false,
|
||||
:manage_backend_package => false,
|
||||
}
|
||||
@ -81,6 +83,7 @@ describe 'zaqar::cache' do
|
||||
:memcache_pool_maxsize => '10',
|
||||
:memcache_pool_unused_timeout => '120',
|
||||
:memcache_pool_connection_get_timeout => '360',
|
||||
:memcache_pool_flush_on_reconnect => false,
|
||||
:tls_enabled => false,
|
||||
:tls_cafile => '<SERVICE DEFAULT>',
|
||||
:tls_certfile => '<SERVICE DEFAULT>',
|
||||
|
Loading…
Reference in New Issue
Block a user