Switch from the Infinispan cache framework
If you already use the Memcached cache framework in your organization and would like to hook it up to the Pentaho Analyzer OLAP engine, follow the directions below to switch from the default Infinispan cache framework configuration.
Note: Pentaho and Mondrian developers recommend against using Memcached. You are almost certain to have better performance with Infinispan.
Perform the following steps to switch from Infinispan to Memcached:
If the Pentaho Server or standalone Mondrian engine are running, shut them down now.
Verify the required JARs are present in the
/WEB-INF/lib/directory inside of your deployedpentaho.waror Mondrian engine.If you performed a default install of the Pentaho Analysis Enterprise Edition package, then you should have all of the required JARs installed to the Pentaho or Mondrian Server. If you are not sure, the required JARs are:
pentaho-analysis-eecommons-langcommons-iocommons-codecpentaho-ee-dsc-corememcached
Edit the
pentaho-analysis-config.xmlin the/WEB-INF/classes/directory inside the deployedpentaho.waror Mondrian engine, and change the value ofSEGMENT_CACHE_IMPLto match the class name referenced below:<entry key="SEGMENT_CACHE_IMPL">com.pentaho.analysis.segmentcache.impl.memcached.MemcachedSegmentCache</entry>Edit the
memcached-config.xmlin the/WEB-INF/classes/directory inside the deployedpentaho.waror Mondrian engine, and change the values ofSALT,SERVERS, andWEIGHTto match your preference:<entry key="SALT">YOUR SECRET SALT VALUE HERE</entry> <entry key="SERVERS">192.168.0.1:1642,192.168.0.2:1642</entry> <entry key="WEIGHTS">1,1</entry>
Your Pentaho Analysis Enterprise Edition instance is now configured to use Memcached for OLAP segment caching.
Last updated
Was this helpful?

