Re: Multiple Embedded Servers Pointing to single solrhome/index

2012-08-09 Thread Bing Hua
-- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-Embedded-Servers-Pointing-to-single-solrhome-index-tp3999451p4000269.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multiple Embedded Servers Pointing to single solrhome/index

2012-08-09 Thread Mark Miller
Yeah, that is not really supported. One write lock and one IndexWriter per index. If you use embedded you want to share your CoreContainer, else don't use embedded. On Aug 6, 2012, at 1:56 PM, Bing Hua wrote: > Hi, > > I'm trying to use two embedded solr servers pointing to a same solrhome /

Re: Multiple Embedded Servers Pointing to single solrhome/index

2012-08-09 Thread Bing Hua
Makes sense. Thank you. -- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-Embedded-Servers-Pointing-to-single-solrhome-index-tp3999451p4000180.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multiple Embedded Servers Pointing to single solrhome/index

2012-08-08 Thread Lance Norskog
t the writer needs to be closed for other > nodes' availability. > > Do you see any issues of this use case? Is the EmbeddedSolrServer able to > release its write lock without shutting down? > > > > -- > View this message in context: > http://lucene.472066.n3.na

Re: Multiple Embedded Servers Pointing to single solrhome/index

2012-08-07 Thread Bing Hua
writer needs to be closed for other nodes' availability. Do you see any issues of this use case? Is the EmbeddedSolrServer able to release its write lock without shutting down? -- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-Embedded-Servers-Pointing-to-s

Re: Multiple Embedded Servers Pointing to single solrhome/index

2012-08-06 Thread Lance Norskog
Where is the common index? On NFS? If it is on a native hard disk (on the same computer) Solr uses the file locking mechanism supplied by the operating system (Linux or Windows). This may not be working right. See this for more info on file locking: http://wiki.apache.org/lucene-java/AvailableLock

Multiple Embedded Servers Pointing to single solrhome/index

2012-08-06 Thread Bing Hua
Hi, I'm trying to use two embedded solr servers pointing to a same solrhome / index. So that's something like System.setProperty("solr.solr.home", "SomeSolrDir"); CoreContainer.Initializer initializer = new CoreContainer.Initializer(); CoreContainer coreContainer = initial