Infinispan Directory Configuration
Infinispan is a distributed scalable, highly available data grid platform which supports autodiscovery of peer nodes. It is possible to store the Lucene index in Infinispan, making it easy to setup a clustering configuration with Hibernate Search and having updates to the index available on other nodes very quickly. This section describes in greater detail how to configure Hibernate Search to use an Infinispan Lucene Directory. Using an Infinispan Directory the index is stored in memory and shared across multiple nodes. It is considered a single directory across all participating nodes. If a node updates the index, all other nodes are affected as well. Updates on one node can be immediately searched for in the whole cluster. The default configuration replicates all data defining the index across all nodes, thus consuming a significant amount of memory. For large indexes it's suggested to enable data distribution, so that each piece of information is replicated to a subset of all cluster members. It is also possible to offload part or most information to a single centralized CacheStore, such as plain filesystem, Amazon S3, Cassandra, Berkley DB, JDBC standard databases. You can also have a CacheStore on each node or chain cachestores. See the Infinispan documentation for all options and configuration details.