On 8/14/2014 2:09 AM, waqas sarwar wrote:
> Thanks Shawn. What i got is Circular replication is totally impossible & Solr 
> fails in distributed environment. Then why solr documentation says that 
> configure "REPEATER" for distributed architecture, because "REPEATER" behave 
> like master-slave at a time.
> Can i configure SolrCloud on LAN, or i've to configure zookeeper myself. 
> Please provide me any solution for LAN distributed servers. If zookeeper in 
> only solution then provide me any link to configure it that can help me & to 
> avoid wrong direction.

The repeater config is designed to avoid master overload from many
slaves.  So instead of configuring ten slaves to replicate from one
master, you configure two slaves to replicate directly from your master,
and then you configure those as repeaters.  The other eight slaves are
configured so that four of them replicate from each of the repeaters
instead of the true master, reducing the load.

SolrCloud is the easiest way to build a fully distributed and redundant
solution.  It is designed for a LAN.  You configure three machines as
your zookeeper ensemble, using the zookeeper download and instructions
for a clustered setup:

http://zookeeper.apache.org/doc/r3.4.6/zookeeperAdmin.html#sc_zkMulitServerSetup

The way to start Solr in cloud mode is to give it a zkHost system
property.  That informs Solr about all of your ZK servers.  If you have
another way of setting that property, you can use that instead.  I
strongly recommend using a chroot with the zkHost parameter, but that is
not required.  Search the zookeeper page linked above for "chroot" to
find a link to additional documentation about chroot.

You can use the same servers for ZK as you do for Solr, but be aware
that if Solr puts a large I/O load on the disks, you may want the ZK
database to be on its own disks(s) so that it responds quickly. 
Separate servers is even better, but not strictly required unless the
servers are under extreme load.

https://cwiki.apache.org/confluence/display/solr/SolrCloud

You will find a "Getting Started" link on the page above.  Note that the
"Getting Started" page talks about a zkRun option, which starts an
embedded zookeeper as part of Solr.  I strongly recommend that you do
NOT take this route, except for *initial* testing.  SolrCloud works much
better if the Zookeeper ensemble is in its own process, separate from Solr.

Thanks,
Shawn

Reply via email to