Files
openstack-manuals/doc/install-guide/source/environment-memcached.rst
Alexandra Settle 405c4b1255 [install-guide] Adds memcached instructions to obs guide
Change-Id: I1ee4e173054aa3707d2a3dd2616b0b5b98d96caa
Closes-bug: 1682439
2017-04-21 10:44:23 +00:00

2.5 KiB

Memcached

The Identity service authentication mechanism for services uses Memcached to cache tokens. The memcached service typically runs on the controller node. For production deployments, we recommend enabling a combination of firewalling, authentication, and encryption to secure it.

Install and configure components

  1. Install the packages:

    ubuntu or debian

    # apt install memcached python-memcache

    rdo

    # yum install memcached python-memcached

    obs

    # zypper install memcached python-python-memcached

ubuntu or debian

  1. Edit the /etc/memcached.conf file and configure the service to use the management IP address of the controller node. This is to enable access by other nodes via the management network:

    -l 10.0.0.11

    Note

    Change the existing line that had -l 127.0.0.1.

rdo

  1. Edit the /etc/sysconfig/memcached file and complete the following actions:
    • Configure the service to use the management IP address of the controller node. This is to enable access by other nodes via the management network:

      OPTIONS="-l 127.0.0.1,::1,controller"

      Note

      Change the existing line OPTIONS="-l 127.0.0.1,::1".

obs

  1. Edit the /etc/sysconfig/memcached file and complete the following actions:
    • Configure the service to use the management IP address of the controller node. This is to enable access by other nodes via the management network:

      MEMCACHED_PARAMS="-l 127.0.0.1"

      Note

      Change the existing line MEMCACHED_PARAMS="-l 127.0.0.1,::1".

Finalize installation

ubuntu or debian

  • Restart the Memcached service:

    # service memcached restart

rdo or obs

  • Start the Memcached service and configure it to start when the system boots:

    # systemctl enable memcached.service
    # systemctl start memcached.service