Add requirement for cross-process cache

Some of the trove-dashboard panels require a cross-process cache
to be used to temporarily store data until it is committed to the
server.  For example, building up the list of configuration
parameters is store in the cache until it is applied to the the
database instance.

This requirement is now added to the readme to inform users to
enable the cache.

Change-Id: I1928da600c7364d8681a8c0b45fe1c66c97032df
Closes-Bug: #1638713
This commit is contained in:
Duk Loi 2016-12-06 09:07:23 -05:00
parent 98f05cb203
commit 230a112ee6
1 changed files with 28 additions and 0 deletions

View File

@ -55,6 +55,34 @@ apache.::
If you set COMPRESS_ENABLED and COMPRESS_OFFLINE to False in local_settings.py
that allows you to bypass the compress and collectstatic as well.
Settings
~~~~~~~~
The use of a cross-process cache such as Memcached is required.
Install Memcached itself and a Memcached binding such as python-memcached.
For a single horizon instance use the CACHES setting like the example below.
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
},
}
For multiple horizon instances behind a load balancer configure each instance
to use the same cache like the example below.
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': [u'10.2.100.133:11211', u'10.2.100.134:11211'']
},
}
NOTE:
=====