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
Complete the following steps:
- Read the information about reading data from replica shards and the applications for which it is appropriate, see 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, see 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 one time, 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 using one of the following methods:
- Place the deployment.xml file in a directory of the IBM® Integration Bus work path.
- Use the mqsichangeproperty command to set a property on the integration node cache manager to point to the deployment.xml file.
- Use the mqsichangeproperty command to set a property on the integration server cache manager to point to the deployment.xml file.
- Integration server (if no policy is set on the integration node) Note: If a policy is set on the integration node, the integration server inherits the properties of the integration node, and any properties set directly on the integration server are overwritten.
- Integration node
- IBM Integration Bus work path
Note: If you choose to configure the property on more than one
integration server (or integration node) in the same IBM Integration Bus installation, the properties
must result in the same map configuration to ensure consistency.