Configuring the embedded global cache to read data from replica shards of a cache map
You can configure your embedded global cache to read data from replica shards of a cache map instead of the primary cache map.
Before you begin
- Read the information about reading data from replica shards and the applications for which it is appropriate, in Optimizing the embedded global cache for use with different types of cache data.
- Create the objectgrid.xml and deployment.xml files and configure the cache map names, as described in Optimizing the embedded global cache for use with different types of cache data.
About this task
If more than one container server exists, the default cache policy ensures that all data is replicated at least once, so that each container server can host primary and replica shards of the cache data. By default, data is read only from the primary shard but you can configure the embedded global cache to support read access to replica shards.
You define that your embedded global cache can read data from replica shards of a cache map by configuring the deployment.xml file. You then configure the embedded global cache by updating the server.conf.yaml configuration file for the integration server to point to the deployment.xml file. The embedded global cache can use only one deployment.xml file.