From 1e15882918b0613df6dea2220db1d41326499526 Mon Sep 17 00:00:00 2001 From: Steve Lewis Date: Thu, 31 Mar 2016 11:48:53 -0700 Subject: [PATCH] Clean up deprecation warning in swift proxy The following warning appears in the swift proxy logs: "Using the in-process token cache is deprecated as of the 4.2.0 release and may be removed in the 5.0.0 release or the 'O' development cycle. The in-process cache causes inconsistent results and high memory usage." Specifying the location of a memcached server will not only clean up a deprecation warning in the logs but should provide a performance improvement. This is caused by the absence of a memcached_servers key in the proxy configuration. While this variable is defined as a group var in the integrated release we insulate against the absense of this value in stand-alone role usage or Swift Stand-Alone deploys which may not include memcached yet to prevent upgrade impacts. Change-Id: I0a16ef0030d1425f52b6c07214d7c8effef51c13 --- templates/proxy-server.conf.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/proxy-server.conf.j2 b/templates/proxy-server.conf.j2 index 0f559e69..651eef15 100644 --- a/templates/proxy-server.conf.j2 +++ b/templates/proxy-server.conf.j2 @@ -88,6 +88,15 @@ project_name = {{ swift_service_project_name }} username = {{ swift_service_user_name }} password = {{ swift_service_password }} delay_auth_decision = {{ swift_delay_auth_decision }} +{% if memcached_servers is defined %} +memcached_servers = {{ memcached_servers }} + +token_cache_time = 300 +revocation_cache_time = 60 + +memcache_security_strategy = ENCRYPT +memcache_secret_key = {{ memcached_encryption_key }} +{% endif %} {% endif %} {% if 'keystoneauth' in swift_middleware_list %}