diff options
author | shuai chen <chenshuai@huawei.com> | 2015-12-15 11:15:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-12-15 11:15:50 +0000 |
commit | 68f4d2a4cfe706c6e7194b270e061261403b1e2d (patch) | |
tree | ad22092f45cca42052a98989db90fcdb6ae31e14 /deploy/adapters/ansible/roles/keystone | |
parent | 25cf6081b5cef33aec03fe76093dd7b87d11c249 (diff) | |
parent | 3e7d82a8f6527755c8eee5788235807dbb8a3df0 (diff) |
Merge "fix some memcached configuration error"
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 |