Re: [infinispan-dev] CacheLoaders, Distribution mode and Interceptors

2013-03-15 Thread Sanne Grinovero
Hi Adrian, let's forget about Lucene details and focus on DIST. With numOwners=1 and having two nodes the entries should be stored roughly 50% on each node, I see nothing wrong with that considering you don't need data failover in a read-only use case having all the index available in the shared Ca

Re: [infinispan-dev] CacheLoaders, Distribution mode and Interceptors

2013-03-15 Thread James Aley
Not sure if I've done exactly what you had in mind... here is my updated XML: https://www.refheap.com/paste/12601 I added the loader to the lucene-index namedCache, which is the one I'm using for distribution. This didn't appear to change anything, as far as I can see. Still seeing a lot of disk

Re: [infinispan-dev] CacheLoaders, Distribution mode and Interceptors

2013-03-15 Thread Ray Tsang
Can you try adding a ClusterCacheLoader to see if that helps? Thanks, On Fri, Mar 15, 2013 at 8:49 AM, James Aley wrote: > Apologies - forgot to copy list. > > On 15 March 2013 15:48, James Aley wrote: > > Hey Adrian, > > > > Thanks for the response. I was chatting to Sanne on IRC yesterday, a

Re: [infinispan-dev] CacheLoaders, Distribution mode and Interceptors

2013-03-15 Thread James Aley
Apologies - forgot to copy list. On 15 March 2013 15:48, James Aley wrote: > Hey Adrian, > > Thanks for the response. I was chatting to Sanne on IRC yesterday, and > he suggested this to me. Actually the logging I attached was from a > cluster of 4 servers with numOwners=2. Sorry, I should have m

Re: [infinispan-dev] CacheLoaders, Distribution mode and Interceptors

2013-03-15 Thread Adrian Nistor
Hi James, I'm not an expert on InfinispanDirectory but I've noticed in [1] that the lucene-index cache is distributed with numOwners = 1. That means each cache entry is owned by just one cluster node and there's nowhere else to go in the cluster if the key is not available in local memory, thu

Re: [infinispan-dev] CacheLoaders, Distribution mode and Interceptors

2013-03-15 Thread James Aley
Hi Ray, Yeah - I've tried with shared=true/false and preload=true/false. I'm using org.infinispan.lucene.cachestore.LuceneCacheLoader. Sorry, I also should have mentioned previously that I'm building from master, as I need access to the Lucene v4 support. James. On 15 March 2013 15:31, Ray Tsa

Re: [infinispan-dev] CacheLoaders, Distribution mode and Interceptors

2013-03-15 Thread Ray Tsang
Was the cache loader shared? Which cache loader were you using? On Fri, Mar 15, 2013 at 8:03 AM, James Aley wrote: > Hey all, > > > Seeing as this is my first post, I wanted to just quickly thank you > all for Infinispan. So far I'm really enjoying working with it - great > product! > > > I'm

[infinispan-dev] CacheLoaders, Distribution mode and Interceptors

2013-03-15 Thread James Aley
Hey all, Seeing as this is my first post, I wanted to just quickly thank you all for Infinispan. So far I'm really enjoying working with it - great product! I'm using the InfinispanDirectory for a Lucene project at the moment. We use Lucene directly to build a search product, which has high rea