openstack-manuals/doc/ha-guide/source/environment-memcached.rst
Alexandra Settle f6451c96b1 Edits to the full ha-guide document
Cleaning up the ha-guide for minor errors and restructure of content.
Some bugs have been filed to draw attention to the TODOs inline.

Change-Id: Id6cdff494db905826ae87be3e38d587e9829d6da
2016-12-02 15:35:24 +00:00

1.4 KiB

Installing Memcached

Most OpenStack services can use Memcached to store ephemeral data such as tokens. Although Memcached does not support typical forms of redundancy such as clustering, OpenStack services can use almost any number of instances by configuring multiple hostnames or IP addresses.

The Memcached client implements hashing to balance objects among the instances. Failure of an instance only impacts a percentage of the objects, and the client automatically removes it from the list of instances.

To install and configure Memcached, read the official documentation.

Memory caching is managed by oslo.cache. This ensures consistency across all projects when using multiple Memcached servers. The following is an example configuration with three hosts:

Memcached_servers = controller1:11211,controller2:11211,controller3:11211

By default, controller1 handles the caching service. If the host goes down, controller2 or controller3 will complete the service.

For more information about Memcached installation, see the Environment -> Memcached section in the Installation Tutorials and Guides depending on your distribution.