This section describes how to configure cluster discovery to use the EHCache multicast. Use this if you do not wish to use JGroups.
- Open the <extension>/ehcache-custom.xml file.
-
Replace the cacheManagerPeerProviderFactory with the following:
<cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446"/>
Note: You must also set the SkyVault.cluster.name property in order to activate index tracking.Attention: If you have several SkyVault clusters on the same network, ensure that the addresses and ports used for Ehcache UDP broadcasts (using the multicastGroupAddress and multicastGroupPort parameters) are unique to each cluster. If you use the same parameters for all the clusters, each cluster will try to communicate with the other clusters, leading to potential issues.For example, you may have a testing or validation SkyVault cluster environment and a production SkyVault cluster environment on the same network. When you copy or transfer your testing configuration files to the production environment, you must change the parameters.
- Save the file.