-
1. Re: Local index in for only one instance of the cache
sannegrinovero Jul 19, 2011 8:56 AM (in response to sudheerk84)Hi,
yes but set indexLocalOnly=false and use REPL instead of DIST.
Why are you using distribution if there are only two nodes?
-
2. Re: Local index in for only one instance of the cache
sudheerk84 Jul 19, 2011 9:06 AM (in response to sannegrinovero)Thanks Sanne for the quick response.
i am using distributed mode fo rteh following reason.
I have many instances of S1 servrice in different nodes - catering to different products.
And i have one instance of S2 service which needs to collect all this data across all instances of S1 service and do soem analysis of it.
So i was planning to use distributed mode for all these caches with every instance of S1 sharing data with S2.
Is there a better way of achiving the same ?
Also teh S2 service is one which needs indexing because it doest write into cache , instead only reads from teh cache using diffferent queries .
-
3. Re: Local index in for only one instance of the cache
sannegrinovero Jul 19, 2011 5:35 PM (in response to sudheerk84)1 of 1 people found this helpfulTo perform "some analysis" could the S2 service not use the Map/Reduce API instead of downloading all the data locally?
It depends on how big the data on S1 is, if it can be stored all on a single node if you can use REPL indexing would be simpler to setup.
If you need to use S1 configured as DIST, you'll need to separate S1 from S2 by using HotRod to make it possible from S2 to fetch the data stored in S1, but you will also need to configure S1 with a shared index and indexLocalOnly=true, and configure a clustered backend for the embedded Hibernate Search engine.