Show Table of Contents
15.4. 缓存库
缓存库(Cache Store)是缓存里数据的一个外部存储。和 JBoss EAP 6 最为相关的外部数据存储库类型是基于文件的、基于 JDBC 的以及远程 Infinispan/JDG 库。
对于基于文件的缓存库,群集里的每个节点通常都有自己的文件系统及基于文件的缓存库。我们不建议将基于文件的缓存库置于共享文件系统(NFS 等)里,因为它们无法实现正确的文件锁,可能会导致数据损坏。
对于基于 JDBC 的缓存库,您可以用单个 SQL 数据库充当所有群集节点的缓存库。然而,您必须将缓存库配置为共享的(设置基于 JDBC 的缓存库上的
shared 属性为 true)。如果没有定义缓存库为共享的,就可能发生数据库死锁以及其他影响性能的问题。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.