diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-12-14 16:50:57 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-12-15 09:09:17 +0800 |
commit | 3e7d82a8f6527755c8eee5788235807dbb8a3df0 (patch) | |
tree | de7860346ff5f1d107c5390297047b39644c9406 /deploy/adapters/ansible/roles/keystone | |
parent | 8345054b0c24c7acb3bca5bb41f9f0e5508c468c (diff) |
fix some memcached configuration error
JIRA: COMPASS-192
Change-Id: I919afb3c109fed151d35d94e323111b85e44073b
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/keystone')
-rw-r--r-- | deploy/adapters/ansible/roles/keystone/templates/keystone.conf | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/deploy/adapters/ansible/roles/keystone/templates/keystone.conf b/deploy/adapters/ansible/roles/keystone/templates/keystone.conf index b022a084..22173e44 100644 --- a/deploy/adapters/ansible/roles/keystone/templates/keystone.conf +++ b/deploy/adapters/ansible/roles/keystone/templates/keystone.conf @@ -1,3 +1,8 @@ +{% set memcached_servers = [] %} +{% for host in haproxy_hosts.values() %} +{% set _ = memcached_servers.append('%s:11211'% host) %} +{% endfor %} +{% set memcached_servers = memcached_servers|join(',') %} [DEFAULT] admin_token={{ ADMIN_TOKEN }} @@ -518,8 +523,8 @@ log_dir = /var/log/keystone # (dogpile.cache.redis) be used in production deployments. # Small workloads (single process) like devstack can use the # dogpile.cache.memory backend. (string value) -#backend=keystone.common.cache.noop - +backend=keystone.cache.memcache_pool +memcache_servers={{ memcached_servers}} # Use a key-mangling function (sha1) to ensure fixed length # cache-keys. This is toggle-able for debugging purposes, it # is highly recommended to always leave this set to True. @@ -540,7 +545,7 @@ log_dir = /var/log/keystone # Global toggle for all caching using the should_cache_fn # mechanism. (boolean value) -#enabled=false +enabled=true # Extra debugging from the cache backend (cache keys, # get/set/delete/etc calls) This is only really useful if you |