Browse Source

Change memcache_socket_timeout to a float

see https://review.opendev.org/#/c/519353/

Change-Id: Ia727f5467a3b499bc2af78868adf8c872be684e1
Closes-Bug: #1835162
changes/92/668792/1 15.1.0
ZhongShengping 3 years ago
parent
commit
08476e4e73
  1. 2
      manifests/cache.pp
  2. 4
      releasenotes/notes/memcache_socket_timeout-9daa8981f42caf41.yaml
  3. 4
      spec/defines/oslo_cache_spec.rb

2
manifests/cache.pp

@ -94,7 +94,7 @@
# [*memcache_socket_timeout*]
# (Optional) Timeout in seconds for every call to a server.
# (dogpile.cache.memcache and oslo_cache.memcache_pool backends only).
# (integer value)
# (floating point value)
# Defaults to $::os_service_default
#
# [*memcache_pool_maxsize*]

4
releasenotes/notes/memcache_socket_timeout-9daa8981f42caf41.yaml

@ -0,0 +1,4 @@
---
features:
- |
`memcache_socket_timeout` is changed to float value.

4
spec/defines/oslo_cache_spec.rb

@ -36,7 +36,7 @@ describe 'oslo::cache' do
:debug_cache_backend => true,
:memcache_servers => ['host1:11211', 'host2:11211','[fd12:3456:789a:1::1]:11211'],
:memcache_dead_retry => '300',
:memcache_socket_timeout => '3',
:memcache_socket_timeout => '3.0',
:memcache_pool_maxsize => '10',
:memcache_pool_unused_timeout => '60',
:memcache_pool_connection_get_timeout => '10',
@ -53,7 +53,7 @@ describe 'oslo::cache' do
is_expected.to contain_keystone_config('cache/debug_cache_backend').with_value('true')
is_expected.to contain_keystone_config('cache/memcache_servers').with_value('host1:11211,host2:11211,inet6:[fd12:3456:789a:1::1]:11211')
is_expected.to contain_keystone_config('cache/memcache_dead_retry').with_value('300')
is_expected.to contain_keystone_config('cache/memcache_socket_timeout').with_value('3')
is_expected.to contain_keystone_config('cache/memcache_socket_timeout').with_value('3.0')
is_expected.to contain_keystone_config('cache/memcache_pool_maxsize').with_value('10')
is_expected.to contain_keystone_config('cache/memcache_pool_unused_timeout').with_value('60')
is_expected.to contain_keystone_config('cache/memcache_pool_connection_get_timeout').with_value('10')

Loading…
Cancel
Save