[hibernate-dev] [infinispan-dev] Infinispan cache loaders in Hibernate Search

Manik Surtani manik at jboss.org
Sat Aug 15 05:02:50 EDT 2009


On 15 Aug 2009, at 00:36, Łukasz Moreń wrote:

> Infinispan offers several persistance stores to persist content of  
> cache, i.e. based on file system, database, S3 amazon service.
> Is there some recommendation which one should be used as a default  
> for Hibernate Search directory provider based on Infinispan cache?

Depends, really.  If you expect more indexes than available memory a  
file system approach is best.  You have the FileCacheStore, or  
BdbjeCacheStore as well.   I would not really recommend the  
JdbcCacheStore for this.  The S3CacheStore is a good option if you are  
deployed on an Amazon cloud (e.g., on EC2) otherwise latency will  
become a problem.

> What about cache loaders configuration strategy: one cache store per  
> node, one common store for all nodes, only single node allowed to  
> write to persistance store.

Using a common store only makes sense if you have a common storage  
location, e.g. with S3CacheStore or JdbcCacheStore.  With file system  
approaches, this only makes sense if it is mounted on a shared volume  
such as NFS or a SAN, but I wouldn't recommend using NFS with any of  
the cache stores.

So anyway, as far as defaults are concerned, I think the best is to  
use the FileCacheStore (no external dependencies that way), and one  
cache store per node (so there is no constraint on a shared volume).   
But it is a good idea to note down the thoughts above in a README or a  
wiki page somewhere.

Cheers
--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org








More information about the hibernate-dev mailing list