Enabling Memcached

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

Changes to the memcached.properties file on the primary web app are authoritative—all settings are passed to the other nodes in the cluster when they read from the database. However, changes to the cache.properties files must still be made on each node. Additionally, any child node with a cache.properties file configured with a cache.type value that does not match what has been previously applied to the database by the primary web app will be considered out of sync and fail to successfully initialize.

  1. Customize the /path/to/Tomcat/webapps/ROOT/WEB-INF/classes/dal/cache.properties file with the following:
    cache.type=memcached
    Note:

    If you want to apply new settings, remove "DBAPPLIED_" that occurs prior to the "cache.type" setting.

  2. Customize the /path/to/Tomcat/webapps/ROOT/WEB-INF/classes/dal/memcached.properties file to include your Memcached endpoint(s). For example:
    memcached.endpoints[0]=IP.Address.of.Server:11211
    memcached.endpoints[1]=IP.Address.of.Server:11211
    Note:

    Memcached endpoints are servers that have Memcached installed and configured, as described above. Memcached endpoints can be defined with either a fully qualified domain name (FQDN), or an IP address; however, an IP address is typically preferred.

  3. Restart Tomcat. See Starting and Stopping Tomcat for instructions.