nipunb
2011-06-26 21:07:09 UTC
PS: Sorry if this is a repost, I was unable to see my message in the mailing
list - this may have been due to my outgoing email different from the one I
used to subscribe to the list with.
Overview – Trying to evaluate if keeping the index in memory using
RAMDirectoryFactory can help in query performance.I am trying to perform the
indexing on the master using solr.StandardDirectoryFactory and make those
indexes accesible to the slave using solr.RAMDirectoryFactory
Details:
We have set-up Solr in a master/slave enviornment. The index is built on the
master and then replicated to slaves which are used to serve the query.
The replication is done using the in-built Java replication in Solr.
On the master, in the <indexDefaults> of solrconfig.xml we have
<directoryFactory name="DirectoryFactory"
class="solr.StandardDirectoryFactory"/>
On the slave, I tried to use the following in the <indexDefaults>
<directoryFactory name="DirectoryFactory"
class="solr.RAMDirectoryFactory"/>
My slave shows no data for any queries. In solrconfig.xml it is mentioned
that replication doesn’t work when using RAMDirectoryFactory, however this (
https://issues.apache.org/jira/browse/SOLR-1379) mentions that you can use
it to have the index on disk and then load into memory.
To test the sanity of my set-up, I changed solrconfig.xml in the slave to
and replicated:
<directoryFactory name="DirectoryFactory"
class="solr.StandardDirectoryFactory"/>
I was able to see the results.
Shouldn’t RAMDirectoryFactory be used for reading index from disk into
memory?
Any help/pointers in the right direction would be appreciated.
Thanks!
--
View this message in context: http://lucene.472066.n3.nabble.com/Using-RAMDirectoryFactory-in-Master-Slave-setup-tp3111792p3111792.html
Sent from the Solr - User mailing list archive at Nabble.com.
list - this may have been due to my outgoing email different from the one I
used to subscribe to the list with.
Overview – Trying to evaluate if keeping the index in memory using
RAMDirectoryFactory can help in query performance.I am trying to perform the
indexing on the master using solr.StandardDirectoryFactory and make those
indexes accesible to the slave using solr.RAMDirectoryFactory
Details:
We have set-up Solr in a master/slave enviornment. The index is built on the
master and then replicated to slaves which are used to serve the query.
The replication is done using the in-built Java replication in Solr.
On the master, in the <indexDefaults> of solrconfig.xml we have
<directoryFactory name="DirectoryFactory"
class="solr.StandardDirectoryFactory"/>
On the slave, I tried to use the following in the <indexDefaults>
<directoryFactory name="DirectoryFactory"
class="solr.RAMDirectoryFactory"/>
My slave shows no data for any queries. In solrconfig.xml it is mentioned
that replication doesn’t work when using RAMDirectoryFactory, however this (
https://issues.apache.org/jira/browse/SOLR-1379) mentions that you can use
it to have the index on disk and then load into memory.
To test the sanity of my set-up, I changed solrconfig.xml in the slave to
and replicated:
<directoryFactory name="DirectoryFactory"
class="solr.StandardDirectoryFactory"/>
I was able to see the results.
Shouldn’t RAMDirectoryFactory be used for reading index from disk into
memory?
Any help/pointers in the right direction would be appreciated.
Thanks!
--
View this message in context: http://lucene.472066.n3.nabble.com/Using-RAMDirectoryFactory-in-Master-Slave-setup-tp3111792p3111792.html
Sent from the Solr - User mailing list archive at Nabble.com.