Use this task to improve performance by configuring the data replication service (DRS) to replicate data from the dynamic cache service across the consumers in a replication domain.
Before you begin
See Cache replication for more information about replicating data for the dynamic cache service.
Do not use the default value of a single replica for the Number of replicas for dynamic cache replication domains. Instead, use a full group replica for any replication domains that you configure for dynamic cache.
Why and when to perform this task
Use this task to improve performance in a clustered environment by enabling the data replication service (DRS) to replicate cached data across the servers in a cluster. Invalidations of cache entries are sent across the cluster to keep the cached data consistent and valid.
Steps for this task
<cache-entry> <sharing-policy>not-shared</sharing-policy> <class>servlet</class> <name>/app</name> <cache-id> <component id="action" type="parameter"> <value>portfolio</value> <required>true</required> </component> <component id="JSESSIONID" type="cookie"> <required>true</required> </component> <property name="EdgeCacheable">true</property> </cache-id> </cache-entry>For more information about the sharing policies that can be defined in the cachespec.xml file, see Cachespec.xml file.
Result
Cache entries copy to the other application servers in the configured replication domain.What to do next
Use the cache monitor to view the contents of the cache. See Displaying cache information for more information.Related tasks
Replicating data across application servers in a cluster
Task overview: Using the dynamic cache service to improve performance
Related reference
Dynamic cache service settings