You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2012/10/17 17:11:05 UTC

[Solr Wiki] Trivial Update of "SolrCloud" by ErickErickson

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrCloud" page has been changed by ErickErickson:
http://wiki.apache.org/solr/SolrCloud?action=diff&rev1=72&rev2=73

Comment:
Minor explication of replicationFactor.

  
  Create
  http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=3&replicationFactor=4
+ 
+ Note: replicationFactor defines the maximum number of replicas created in addition to the leader from amongst the nodes currently running (i.e. nodes added later will not be used for this collection). Imagine you have a cluster with 20 nodes and want to add an additional smaller collection to your installation with 2 shards, each shard with a leader and two replicas. You would specify a replicationFactor=2. Now six of your nodes will host this new collection and the other 14 will not host the new collection. 
  
  Delete
  http://localhost:8983/solr/admin/collections?action=DELETE&name=mycollection