Configure Memcache for HA Environments

In FileCloud, Memcache is used as a storage cache for NTFS permissions, storage encryption, and SSO session handling. Memcache can be used in FileCloud HA mode only for SSO session handling. NTFS permissions and storage encryption can use only one Memcache server.

In HA configurations, bind the Memcache service to the private IP of the Memcache server that is accessible by the application servers.

To change the Memcache IP binding:

Windows:

  1. Edit the Registry entry ImagePath under:
    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\memcached
  2. To change the localhost binding to the private IP of the servers where Memcache is running, in Value data, enter the following, replacing 192.0.2.0 with your server's IP address:
    C:\xampp\memcached\memcached.exe -d runservice -l 192.0.2.0
  3. Click OK.
  4. Restart the Memcache service from FileCloud control panel or Windows Services.


Ubuntu:

  1. Edit the file /etc/memcached.conf.
  2. Locate the line -l 127.0.0.1 and change it to the private IP of your server.
    For example, if the private server is 192.0.2.0, enter: 
    -l 192.0.2.0
  3. Once the changes are made, restart the Memcache service by entering:
    service memcached restart
    or
    systemctl restart memcached


RHEL:

  1. Edit the file /etc/sysconfig/memcached.
  2. Locate the line OPTIONS="-l 127.0.0.1 -U 0" and change it to the private IP of your server.
    For example, if the private server is 192.0.2.0, enter: 
    OPTIONS="-l 192.0.2.0 -U 0"
  3. Once the changes are made restart the Memcache service by entering:
    service memcached restart
    or 
    systemctl restart memcached


To configure Memcached in FileCloud, see Install and Configure FileCloud Web Servers for HA.