Dear Magnolians
We have been using clustered repos very often - everywhere where there is user
generated content. However for the first time, we need to place documents in
the clustered repo. At first, everything seemed to work fine, until trying to
download a document on the author instance which has been generated on the
public instance: The file cannot be downloaded, because the corresponding data
store file could not be found.
When reading Jackrabbit's clustering wiki page again [1], I discovered the
following:
[quote]Data Store Configuration
All cluster nodes must point to the same data store location. The data store
should be used to store large binaries (all cluster nodes need to access the
same data store). When not using the data store, one need to set the parameter
externalBLOBs to false so that large binaries are stored in the persistence
manager. The file system blob store does not support clustering, because it
uses a local directory.[/quote]
A quick read up about DataStores [2] made me check the repo config file. In
Magnolia a FileDataStore is configured per default:
[code]
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
<param name="path" value="${rep.home}/repository/datastore"/>
<param name="minRecordLength" value="1024"/>
</DataStore>
[/code]
So instead of changing the path for the FileDataStore in the repo conf of my
clustered repo, I simply created a symbolic link in the file system in order
for both instances to point to the same folder. After some testing I have not
discovered any problems yet. However my experience here is _very_ limited. Can
anyone tell me if my approach might cause problems?
Thanks!
-will
[1] http://wiki.apache.org/jackrabbit/Clustering
[2] http://wiki.apache.org/jackrabbit/DataStore
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=df35c1e9-5d35-4ba5-b60e-8f0cbadf932e
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------