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.
See Cache replication for more information about replicating data for the dynamic cache service. You should have a replication domain created for the dynamic cache service. Configure a different replication domain for each type of consumer of the replication domain. For example, configure two different replication domains for dynamic cache and session manager. There are two ways to configure replication domains:
For more details about configuring replication domains, see Replicating data across application servers in a cluster.
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.
Note: If you configured cache replication with a previous version of WebSphere Application Server, review Migrating servers from multi-broker replication domains to data replication domains to learn about the new type of replication domains that you should use with the current version of WebSphere Application Server.
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.
This is optional. You can override the global sharing policy by specifying a specific sharing policy in the cache policy. For example, if your global policy is to use Push only, you can change the sharing policy of a specific cache entry by making this change to your cache policy:
<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.