Distributed Memory Cache

A multiple-host installation in which each Content Engine instance maintains its own cache is not particularly efficient: it is better to pool the memory in a single, common cache. The most commonly-used means of doing this is to use the open source distributed cache manager memcached.

The instructions below tell you how to install memcached, configure it and then reconfigure your publications' PresentationArticleCache caches to use it. These caches will then share a single memory pool managed by memcached.

These instruction are based on the assumption that you want to install memcached on all your engine-hosts: memcached will then use some memory from each host. It might be the case, however, that you would prefer to concentrate the cache on a smaller number of hosts, or on one specific host. You may even wish to locate the cache on a completely different host, one that is not running the Content Engine. memcached is a completely free-standing application, and you can install it on any host or group of hosts in your network. The configuration described below is only one of many possible set-ups.

Note that if you are using memcached, the decorator must be serializable.