Browse code

Enable keystone caching

Enable keystone caching since there is now a memcache server available
for the middlewares to cache validation. Offload queries to the
keystone backend to memcache as well.

Change-Id: I6d1d28f5b974e79d44d1e86ea53c666e3f5771df

Morgan Fainberg authored on 2016/01/25 13:36:35
Showing 1 changed files
... ...
@@ -218,6 +218,14 @@ function configure_keystone {
218 218
     iniset $KEYSTONE_CONF role driver "$KEYSTONE_ROLE_BACKEND"
219 219
     iniset $KEYSTONE_CONF resource driver "$KEYSTONE_RESOURCE_BACKEND"
220 220
 
221
+    # Enable caching
222
+    iniset $KEYSTONE_CONF cache enabled "True"
223
+    iniset $KEYSTONE_CONF cache backend "oslo_cache.memcache_pool"
224
+    iniset $KEYSTONE_CONF cache memcache_servers $SERVICE_HOST:11211
225
+
226
+    # Do not cache the catalog backend due to https://bugs.launchpad.net/keystone/+bug/1537617
227
+    iniset $KEYSTONE_CONF catalog caching "False"
228
+
221 229
     iniset_rpc_backend keystone $KEYSTONE_CONF
222 230
 
223 231
     # Register SSL certificates if provided