-
1. Re: Must all cluster nodes create all named caches?
ckulenk Jul 18, 2011 5:43 PM (in response to joe.planisky)1 of 1 people found this helpfulThe ConsistentHash does not know which node called "getCache" or which node configured a cache - it always sees all nodes with the same ClusterName. Because ClusterName (see config.html#ce_global_transport or org/infinispan/config/GlobalConfiguration.html#setClusterName(java.lang.String)) is a global option, I think you will have to use multiple CacheManagers with different ClusterNames for each cache to achieve the behavior you want out of the box.
-
2. Re: Must all cluster nodes create all named caches?
sannegrinovero Jul 18, 2011 8:09 PM (in response to ckulenk)Christian is correct, you'll have to use different CacheManagers in your case.
All CacheManagers connected in a cluster must have the same configuration, but we don't enforce this as some details might be different; at least the same set of caches should exist on each node and operate in compatible ways; for example the cluster mode should be the same, but the details of a cacheloader might be different, so you can have it store in a different database.
We call the capability to run a different set of caches on each node "asymmetric clusters" and the feature is much requested, tracked as ISPN-658, but not implemented.
I agree it's a serious flaw in the documentation, I'm opening a ticket right now to correct this: ISPN-1252.
-
3. Re: Must all cluster nodes create all named caches?
joe.planisky Jul 19, 2011 9:23 AM (in response to sannegrinovero)Thank you Sanne and Christian for answering my question.
--
Joe