Configure one or more brokers to share data in the global cache by using an XML policy file. Use a policy file to enhance the availability of the cache by configuring a broker to host two catalog servers. Also use a policy file to host container servers in a multi-instance broker for high availability.
For more information about the default global cache topology, see Data caching overview.
For specific instructions to configure the global cache for multi-instance brokers, see Configuring the global cache for multi-instance brokers.
Two of the sample policies configure the cache to contain two catalog servers. This configuration means that if one of the catalog servers is stopped, the other catalog server is used, and no cache data is lost. However, having more than one catalog server can affect startup time after the broker is started, until the cache is available. If you have more than one catalog server, you must start at least two of them for the cache to be available. When you configure a cache across multiple brokers with multiple catalog servers, if you need to start one broker before the others then you can configure this broker to host two catalog servers.
When you set the broker-level property to a policy file, the policy file is validated against an XML schema. A copy of the XML schema file is provided at install_dir/cachesupport/schema.
Do not edit the sample policy files in their original location; copy them to your own file system first. The original sample policy files might be replaced when you apply maintenance to IBM Integration Bus.
You cannot use the policy file to fix specific cache roles to specific integration servers. Instead, you must use the none policy; see Embedded global cache.
The following steps describe how to configure the global cache for multiple brokers.
mqsicacheadmin brokerName -c showPlacement
You
can also use the mqsicacheadmin command
to show cache components in a multi-broker cache. For example, the listHosts command
shows the host names, number of hosts, and number of catalogs in the
cache:mqsicacheadmin brokerName -c listHosts