如何为具有共享 NFS 安装的 2 个节点设置 Jackrabbit Repository.xml?
我在尝试使用共享 NFS 安装来使我的repository.xml 正确用于 2 节点配置时遇到了很多麻烦。我应该为 PersistenceManager 和 Journal 使用数据库持久化管理器吗?
我发现 Apache Jackrabbit Wiki 很迟钝,无法避免此错误:
20:47:34.804 [pool-1-thread-3] WARN oajcore.util.RepositoryLock - Existing lock file /export/attachments/检测到.lock。存储库未正确关闭。
如果您有示例repository.xml,请分享。谢谢。
I'm having a lot of trouble trying to get my repository.xml correct for a 2 node configuration using a shared NFS mount. Should I be using a DB persistence manager for both the PersistenceManager and Journal?
I find the Apache Jackrabbit Wiki obtuse and haven't been able to avoid this error:
20:47:34.804 [pool-1-thread-3] WARN o.a.j.core.util.RepositoryLock - Existing lock file /export/attachments/.lock detected. Repository was not shut down properly.
If you have an example repository.xml, please share. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确实,所有 Jackrabbit 集群节点都需要访问相同的持久存储(持久管理器、数据存储和存储库文件系统)。但是,每个集群节点都需要自己的(私有)存储库目录,包括repository.xml 文件、工作区文件系统和搜索索引。看来您尝试使用相同的存储库目录。
我相应地更新了 Jackrabbit 集群 wiki 页面。
是的,这是一个很好的解决方案。
顺便说一句,您可以检查商业 Day CRX(基于 Jackrabbit)。还有更多有关集群的文档,很多它也适用于长耳大野兔。免责声明:我在 Day 工作(现在是 Adobe 的一部分)。
It's true that all Jackrabbit cluster nodes need access to the same persistent storage (persistence manager, data store, and repository file system). However, each cluster node needs its own (private) repository directory, including repository.xml file, workspace FileSystem and Search index. It looks like you try to use the same repository directory.
I updated the Jackrabbit cluster wiki page accordingly.
Yes, that's a good solution.
By the way, you could check how clustering is configured in the commercial Day CRX (which is based on Jackrabbit). There is more documentation about clustering, a lot of it applies to Jackrabbit as well. Disclaimer: I work for Day (now part of Adobe).