MashZone NextGen Administration : MashZone NextGen Server Configuration : BigMemory for Caching, Connections and MashZone NextGen Analytics : Configure BigMemory Servers for MashZone NextGen Caching and In-Memory Stores
Configure BigMemory Servers for MashZone NextGen Caching and In-Memory Stores
You can configure MashZone NextGen to work with one or an array of BigMemory Servers to provide additional memory, provide reliability and support specific other features. See BigMemory for Caching, Connections and MashZone NextGen Analytics for more information on features that require BigMemory servers.
To configure BigMemory Servers for MashZone NextGen
1. Copy your license for BigMemory to MashZone NextGen and update MashZone NextGen startup scripts:
a. Copy the license file terracotta.key to the MashZoneNG-install/apache-tomee-jaxrs/conf folder.
Note:  
If MashZone NextGen is deployed in a cluster, you must copy this file to every cluster member.
b. Add this Java system property to the MashZone NextGen startup script :
-Dcom.tc.productkey.path=MashZoneNG-install/apache-tomee-jaxrs/conf/terracotta.key
Add this property to either:
*MashZoneNG-install/apache-tomee-jaxrs/bin/setenv.bat file for Windows systems, or
*MashZoneNG-install/apache-tomee-jaxrs/bin/setenv.sh file for Linux, OS/X or UNIX systems.
Note:  
If MashZone NextGen is deployed in a cluster, you must update the startup scripts for every cluster member.
2. Edit the ehcache.xml file for MashZone NextGen in a text editor of your choice. The location depends on your deployed environment:
Only One MashZone NextGen Server
MashZoneNG-install/apache-tomee-jaxrs/webapps/presto/WEB-INF/classes/ehcache.xml
A MashZone NextGen Cluster and Shared External Configuration Folder
MashZoneNG-config/ehcache.xml
For more information in a clustered environment, see Setting Up an External MashZone NextGen Configuration Folder.
A MashZone NextGen Cluster With No Shared Configuration
You must update MashZoneNG-install/apache-tomee-jaxrs/webapps/presto/WEB-INF/classes/ehcache.xml for each cluster member.
3. Find the line in ehcache.xml with <terracottaConfig> that is commented out like this:
<!-- <terracottaConfig url="localhost:9510" /> -->
Remove the comment markers and change the url attribute to the host (or IP address) and port for the BigMemory server(s) you installed. For example:
<terracottaConfig url="tcHost1:9510" />
Note:  
There are several ways to identify one or more BigMemory servers for MashZone NextGen. See BigMemory documentation for more information.
4. Find the line in ehcache.xml with <terracotta> that is commented out and uncomment this line for each of the following named <cache> elements:
*RAQL_DATA_CACHE = the MashZone NextGen Analytics In-Memory Stores
*SEARCH_RESULTS_CACHE = one part of the MashZone NextGen Artifact cache.
*SERVICES_BY_ID_CACHE = = one part of the MashZone NextGen Artifact cache.
*SERVICE_RESPONSE_CACHE = the MashZone NextGen Response cache for mashables and mashups. This is optional. Update this cache only if you want it to be distributed.
This <terracotta> element allows the In-Memory Store and MashZone NextGen caches to use heap and off-heap memory in both the local host and BigMemory hosts. This combined memory is managed by BigMemory.
For more information on the <terracotta> element, see Distributed Configuration topics in BigMemory documentation.
5. Save these changes to ehcache.xml.
Important:  
For clusters where this configuration file is not stored in a shared external folder, copy this file to the same location for each MashZone NextGen cluster member.
6. Optionally, update configuration for dynamic In-Memory Stores that MashZone NextGen Analytics creates to work with BigMemory servers:
a. Edit the dynamiccache.xml file in these locations (based on your deployed environment):
Only One MashZone NextGen Server
MashZoneNG-install/apache-tomee-jaxrs/webapps/presto/WEB-INF/classes/dynamiccache.xml
A MashZone NextGen Cluster and Shared External Configuration Folder
MashZoneNG-config/dynamiccache.xml
For more information in a clustered environment, see Setting Up an External MashZone NextGen Configuration Folder.
A MashZone NextGen Cluster With No Shared Configuration
You must update MashZoneNG-install/apache-tomee-jaxrs/webapps/presto/WEB-INF/classes/dynamiccache.xml for each cluster member.
b. Add a <terracotta> element inside the <cache> element.
c. Provide URLs or other connection information as needed.
For more information on configuration for the <terracotta> element, see BigMemory documentation.
d. Save your changes.
7. Optionally, update configuration for any declared In-Memory Stores to work with these BigMemory server(s):
a. In the configuration files for your declared In-Memory Stores, add a <terracotta> element inside the corresponding <cache> element.
b. Provide URLs or other connection information as needed.
For more information on the <terracotta> element, see BigMemory documentation.
c. Save changes to these files.
d. Upload these configuration changes. See Modify a Declared In-Memory Store for instructions.
8. Start BigMemory Server(s).
9. If needed, adjust memory configuration for the local MashZone NextGen host. See Memory Configuration for the MashZone NextGen Server for instructions.
10. Restart MashZone NextGen. See Start and Stop the MashZone NextGen Server for instructions.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback