1 of 1 people found this helpful
The 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.
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.
Thank you Sanne and Christian for answering my question.