Distributed and replicated cache are provided as local
sgarcia Feb 7, 2013 12:13 PMHi everyone,
I'm trying to prepare a clustered environment using jboss as7.1.1.Final running in domain mode.
I have a distributable war that uses a cache defined in a cache container. I tried to configure the cache as replicated-cache or distributed-cache, but when I use the cache, each server see it as local cache. I verify not to include infinispan.jar in the war and I added the dependency reference in MANIFEST.MF to use the module bundled of the jboss server.
My Cache subsystem configuration is:
<cache-container name="cluster" aliases="ha-partition" default-cache="default" eviction-executor="infinispan-eviction" listener-executor="infinispan-listener" replication-queue-executor="infinispan-repl-queue">
<transport lock-timeout="60000"/>
<replicated-cache name="default" mode="SYNC" start="EAGER" batching="true">
<locking isolation="REPEATABLE_READ"/>
</replicated-cache>
<distributed-cache name="control" owners="0" mode="SYNC" start="EAGER" batching="true">
<locking isolation="READ_COMMITTED"/>
<file-store/>
</distributed-cache>
</cache-container>
I receive the following debuggin information:
17:54:16,398 INFO [stdout] (MSC service thread 1-16) Configuration{classLoader=ModuleClassLoader for Module "deployment.xtent.war:main" from Service Module Loader, clustering=ClusteringConfiguration{async=AsyncConfiguration{asyncMarshalling=false, replicationQueue=org.infinispan.remoting.ReplicationQueueImpl@34f2c18e, replicationQueueInterval=5000, replicationQueueMaxElements=1000, useReplicationQueue=false}, cacheMode=LOCAL, hash=HashConfiguration{activated=false, consistentHash=null, hash=org.infinispan.commons.hash.MurmurHash3@2d816cca, numOwners=2, numVirtualNodes=48, groupsConfiguration=GroupsConfiguration{enabled=false, groupers=[]}, stateTransferConfiguration=StateTransferConfiguration{chunkSize=10000, fetchInMemoryState=false, originalFetchInMemoryState=false, timeout=240000}}, l1=L1Configuration{activated=true, enabled=false, invalidationThreshold=0, lifespan=600000, onRehash=false}, stateTransfer=StateTransferConfiguration{chunkSize=10000, fetchInMemoryState=false, originalFetchInMemoryState=false, timeout=240000}, sync=SyncConfiguration{replTimeout=15000}}, customInterceptors=CustomInterceptorsConfiguration{interceptors=[]}, dataContainer=DataContainerConfiguration{dataContainer=null}, deadlockDetection=DeadlockDetectionConfiguration{enabled=false, spinDuration=100}, eviction=EvictionConfiguration{maxEntries=-1, strategy=NONE, threadPolicy=DEFAULT}, expiration=ExpirationConfiguration{lifespan=-1, maxIdle=-1, reaperEnabled=true, wakeUpInterval=60000}, indexing=IndexingConfiguration{enabled=false, indexLocalOnly=false}, invocationBatching=InvocationBatchingConfiguration{enabled=false}, jmxStatistics=JMXStatisticsConfiguration{enabled=false}, loaders=LoadersConfiguration{cacheLoaders=[], passivation=false, preload=false, shared=false}, locking=LockingConfiguration{concurrencyLevel=32, isolationLevel=READ_COMMITTED, lockAcquisitionTimeout=10000, useLockStriping=false, writeSkewCheck=false}, storeAsBinary=StoreAsBinaryConfiguration{enabled=false, storeKeysAsBinary=true, storeValuesAsBinary=true}, transaction=TransactionConfiguration{autoCommit=true, cacheStopTimeout=30000, eagerLockingSingleNode=false, lockingMode=OPTIMISTIC, syncCommitPhase=true, syncRollbackPhase=false, transactionManagerLookup=org.infinispan.transaction.lookup.GenericTransactionManagerLookup@c0d591d, transactionSynchronizationRegistryLookup=null, transactionMode=NON_TRANSACTIONAL, useEagerLocking=false, useSynchronization=false, recovery=RecoveryConfiguration{enabled=false, recoveryInfoCacheName='__recoveryInfoCacheName__'}, use1PcForAutoCommitTransactions=false}, versioning=VersioningConfiguration{enabled=false, scheme=NONE}, unsafe=UnsafeConfiguration{unreliableReturnValues=false}}
17:54:16,416 INFO [stdout] (MSC service thread 1-16) Cluster name ISPN
17:54:16,417 INFO [stdout] (MSC service thread 1-16) Cluster members local
I highlighted the cacheMode=LOCAL.
I'd really appreciate any kind of support.
Regards.