On Wed, Aug 19, 2009 at 2:27 AM, vivek sar<vivex...@gmail.com> wrote: > Hi, > > We use multi-core setup for Solr, where new cores are added > dynamically to solr.xml. Only one core is active at a time. My > question is how can the replication be done for multi-core - so every > core is replicated on the slave?
replication does not handle new core creation. You will have to issue the core creation command to each slave separately. > > I went over the wiki, http://wiki.apache.org/solr/SolrReplication, > and few questions related to that, > > 1) How do we replicate solr.xml where we have list of cores? Wiki > says, "Only files in the 'conf' dir of solr instance is replicated. " > - since, solr.xml is in the home directory how do we replicate that? solr.xml canot be replicated. even if you did it is not reloaded. > > 2) Solrconfig.xml in slave takes a static core url, > > <str name="masterUrl">http://localhost:port/solr/corename/replication</str> put a placeholder like <str name="masterUrl">http://localhost:port/solr/${solr.core.name}/replication</str> so the corename is automatically replaced > > As in our case cores are created dynamically (new core created after > the active one reaches some capacity), how can we define master core > dynamically for replication? The only I see it is using "fetchIndex" > command and passing new core info there - is it right? If so, does the > slave application have write code to poll Master periodically and fire > "fetchIndex" command, but how would Slave know the Master corename - > as they are created dynamically on the Master? > > Thanks, > -vivek > -- ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com