Skip to content

Commit

Permalink
use a java property to give the numOwners for objects in the cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Apr 8, 2013
1 parent 60f96a1 commit 7ac900c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Expand Up @@ -19,7 +19,7 @@
<clustering mode="distribution">
<sync/>
<l1 enabled="false" lifespan="0" onRehash="false"/>
<hash numOwners="1"/>
<hash numOwners="${fcrepo.ispn.numOwners:1}"/>
<stateTransfer fetchInMemoryState="true"/>
</clustering>
</default>
Expand All @@ -33,7 +33,7 @@
<clustering mode="distribution">
<sync/>
<l1 enabled="false" lifespan="0" onRehash="false"/>
<hash numOwners="1"/>
<hash numOwners="${fcrepo.ispn.numOwners:1}"/>
<stateTransfer fetchInMemoryState="true"/>
</clustering>

Expand Down
Expand Up @@ -16,10 +16,12 @@
Defines the default behavior for all caches, including those created dynamically (e.g., when a
repository uses a cache that doesn't exist in this configuration).
-->
<clustering mode="replication">
<sync/>
<stateTransfer fetchInMemoryState="true"/>
</clustering>
<clustering mode="distribution">
<sync/>
<l1 enabled="false" lifespan="0" onRehash="false"/>
<hash numOwners="${fcrepo.ispn.numOwners:1}"/>
<stateTransfer fetchInMemoryState="true"/>
</clustering>
</default>

<namedCache name="FedoraRepository">
Expand All @@ -28,8 +30,10 @@
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="replication">
<clustering mode="distribution">
<sync/>
<l1 enabled="false" lifespan="0" onRehash="false"/>
<hash numOwners="${fcrepo.ispn.numOwners:1}"/>
<stateTransfer fetchInMemoryState="true"/>
</clustering>

Expand Down

0 comments on commit 7ac900c

Please sign in to comment.