Search code examples
solrreplicationshardingsolrcloud

SolrCloud index replication


I have prepared Solr index. Now I'm trying to replicate this index to all nodes in SolrCloud cluster. In master slave I did it without problems, when I defined ReplicationHandler with Master and Slaves with master-url. But how I can do it with SolrCloud?


Solution

  • SolrCloud does not have a concept of master & slave. If there are two (or three) replicas, Zookeeper will decide who the leader is amongst the replicas.

    The leader in this case will act as the master. The other ones will work as a slave (they will replicate the replica of the leader).

    If the leader replica is dead, Zookeeper will assign a new leader amongst the replicas.