Thank you so much for the suggestion, Is the same recommended for querying too i found it very slow when i do query using clousolrserver Kalyan
> Date: Tue, 6 Aug 2013 13:25:37 -0600 > From: s...@elyograg.org > To: solr-user@lucene.apache.org > Subject: Re: SolrCloud Indexing question > > On 8/6/2013 12:55 PM, Kalyan Kuram wrote: > > Hi AllI need suggestion on how to send indexing commands to 2 different > > solr server,Basically i want to mirror my index,here is the scenarioi have > > 2 cluster, > > each cluster has one master and 2 slaves with external zookeeper in the > > fronti need suggestion on what solr api class i should use to send indexing > > commands to 2 masters,will LBHttpSolrServer do the indexing or is this only > > used for querying > > If there is a better approach please suggest > > Kalyan > > If you're using zookeeper, then your index is SolrCloud, and you don't > have masters and slaves. The traditional master/slave replication model > does not apply to SolrCloud. > > With SolrCloud, there is no need to have two independent clusters. If a > server dies, the other servers in the cloud will keep the cluster > operational. When you bring the dead server back with the proper > config, it will automatically be synchronized with the cluster. > > For a Java program with SolrJ, use a CloudSolrServer object for each > cluster. The constructor for CloudSolrServer accepts the same zkHost > parameter that you give to each Solr server when starting in SolrCloud > mode. You cannot index to independent clusters at the same time through > one object - if they truly are independent SolrCloud installs, you have > to manage updates to both of them independently. > > Thanks, > Shawn >