From 75ace7a5edbb6496633b97dc1d6b60e000ff3e5f Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Tue, 7 Jun 2016 17:44:06 -0500 Subject: [PATCH] Correct keystone memcached host setting keystone was configured to connect to memcached on the host IP address. Unfortunately, memcached is only listening on localhost, so this setting actually hurts performance as keystone fails to connect to the memcached server. There's no indication of this in the keystone logs since this is just how memcache client works (ignoring errors). You can verify this by 1) in /etc/memcached.conf, set -vv 2) restart memcached: service memcached restart 3) watch /var/log/memcached.log 4) There will be no output with this change, there will be output in /var/log/memcached.log Also the performance should be a lot better. Change-Id: I95d798d122e2a95e27eb1d2c4e786c3cd844440b --- lib/keystone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/keystone b/lib/keystone index c94bcd3a71..5695004c4a 100644 --- a/lib/keystone +++ b/lib/keystone @@ -246,7 +246,7 @@ function configure_keystone { # Enable caching iniset $KEYSTONE_CONF cache enabled "True" iniset $KEYSTONE_CONF cache backend "oslo_cache.memcache_pool" - iniset $KEYSTONE_CONF cache memcache_servers $SERVICE_HOST:11211 + iniset $KEYSTONE_CONF cache memcache_servers localhost:11211 # Do not cache the catalog backend due to https://bugs.launchpad.net/keystone/+bug/1537617 iniset $KEYSTONE_CONF catalog caching "False"