Skip to content

Commit

Permalink
First simple clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Jan 22, 2013
1 parent f87c1fc commit 7f137eb
Show file tree
Hide file tree
Showing 4 changed files with 2,984 additions and 3 deletions.
11 changes: 11 additions & 0 deletions src/main/resources/infinispan_configuration.xml
Expand Up @@ -5,6 +5,11 @@

<global>
<!-- Defines the global settings shared by all caches -->
<transport>
<properties>
<property name="configurationFile" value="jgroups-tcp.xml"/>
</properties>
</transport>
</global>

<default>
Expand All @@ -20,6 +25,12 @@
use pessimistic locking, which is required whenever applications will be concurrently
updating nodes within the same process. If you're not sure, use pessimistic locking.
-->
<clustering mode="distribution">
<sync/>
<l1 enabled="false" lifespan="0" onRehash="false"/>
<hash numOwners="1" />
<stateTransfer fetchInMemoryState="true"/>
</clustering>
<transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
transactionMode="TRANSACTIONAL"
lockingMode="PESSIMISTIC"/>
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/jgroups.xml
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="urn:org:jgroups"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:jgroups xsd/JGroups-2.8.xsd">

<AUTH/>
</config>
6 changes: 3 additions & 3 deletions src/main/resources/my_repository.json
Expand Up @@ -10,9 +10,9 @@
"cacheName" : "FedoraRepository",
"cacheConfiguration" : "infinispan_configuration.xml",
"binaryStorage" : {
"type" : "file",
"directory" : "FedoraRepository/bitstreams",
"minimumBinarySizeInBytes" : 1
"type" : "cache",
"dataCacheName" : "FedoraRepository",
"metadataCacheName" : "FedoraRepository"
}
},
"security" : {
Expand Down

0 comments on commit 7f137eb

Please sign in to comment.