Install Memcached

Memcached caches Subversion (SVN) authentication and authorization information and serves the mod_authnz_ctf module's authentication and authorization requests thereby reducing the number of SOAP calls, which in turn results in less load on the TeamForge Application Server.

To set up caching with Memcached:
  1. Install Memcached.
  2. Configure Memcached settings.
  3. Provision TeamForge.

Do this on the server that hosts Subversion:

  1. Install Memcached.
    Add the subversion-caching identifier to the SERVICES token. For example:
    localhost:SERVICES=ctfcore ctfcore-database mail etl ctfcore-datamart search subversion 
    cvs codesearch cliserver eventq mongodb redis rabbitmq  gerrit gerrit-database binary binary-database 
    reviewboard reviewboard-database reviewboard-adapter subversion-caching
    It is also possible to use an externally managed Memcached server. To use an externally managed Memcached server, add the subversion-caching service to the SERVICES token as shown below:
    localhost:SERVICES=ctfcore ctfcore-database mail etl ctfcore-datamart search subversion 
    cvs codesearch cliserver eventq mongodb redis rabbitmq  gerrit gerrit-database binary binary-database 
    reviewboard reviewboard-database reviewboard-adapter
    myexternalmemcachedserver:SERVICES=subversion-caching

    Where, "myexternalmemcachedserver" hosts the Memcached service.

  2. Configure the OPTIONS key in the Memcached configuration file (/etc/sysconfig/memcached) and start Memcached.
    1. The OPTIONS key in the memcached configuration file is used to set additional options during Memcached startup. Add the -l <ip-addr> flag to have Memcached listen to <ip_addr>. This is an important option to consider as there is no other way to secure the installation. Binding to an internal or firewalled network interface is recommended.
      • vi /etc/sysconfig/memcached
      Important: Remove the -l flag from the OPTIONS key to have Memcached listen to the server's default IP address or host name, including the 'localhost'.
  3. Provision services.
    • teamforge provision
    Note:

    TeamForge 17.4 (and later) installer expects the system locale to be LANG=en_US.UTF-8. TeamForge "provision" command fails otherwise.