diff --git a/README.rst b/README.rst index ce94715..ee3812b 100644 --- a/README.rst +++ b/README.rst @@ -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: =====