Add socket keepalive options for the pymemcache backend

Original oslo.cache change:
https://review.opendev.org/c/openstack/oslo.cache/+/803716

Depends-On: https://review.opendev.org/816622
Depends-On: https://review.opendev.org/816626
Depends-On: https://review.opendev.org/816632
Depends-On: https://review.opendev.org/816633
Change-Id: I5f8bff83d409b8b593ba786deeb83df4b6b3f1c2
This commit is contained in:
Grzegorz Grasza 2021-11-04 11:11:19 +01:00
parent 8e5e6a8281
commit a287ebc42f
4 changed files with 7 additions and 4 deletions

View File

@ -116,6 +116,7 @@ outputs:
- {get_param: MemcachedTLS}
- ceilometer::cache_backend: 'dogpile.cache.pymemcache'
ceilometer::cache_tls_enabled: true
ceilometer::cache_enable_socket_keepalive: true
service_config_settings:
keystone:
# Enable default notification queue

View File

@ -210,4 +210,5 @@ outputs:
- if:
- tls_cache_enabled
- heat::cache::backend: 'dogpile.cache.pymemcache'
heat::cache::enable_socket_keepalive: true
- heat::cache::backend: 'dogpile.cache.memcached'

View File

@ -579,6 +579,7 @@ outputs:
- if:
- tls_cache_enabled
- keystone::cache::backend: 'dogpile.cache.pymemcache'
keystone::cache::enable_socket_keepalive: true
- keystone::cache::backend: 'dogpile.cache.memcached'
- if:
- {get_param: KeystoneFederationEnable}

View File

@ -192,11 +192,11 @@ outputs:
nova::cross_az_attach: {get_param: NovaCrossAZAttach}
nova::cache::enabled: {get_param: EnableCache}
nova::cache::tls_enabled: {get_param: MemcachedTLS}
nova::cache::backend:
if:
if:
- tls_cache_enabled
- 'dogpile.cache.pymemcache'
- 'dogpile.cache.memcached'
- nova::cache::backend: 'dogpile.cache.pymemcache'
nova::cache::enable_socket_keepalive: true
- nova::cache::backend: 'dogpile.cache.memcached'
nova::rpc_response_timeout: {get_param: NovaRpcResponseTimeout}
nova::upgrade_level_compute:
if: