That was really helpful. I will try the Collections API. Is there a plan to support replication using solr.xml?
Balaji Gandhi, Senior Software Developer, Horizontal Platform Services Product Engineering | Apollo Group, Inc. 1225 W. Washington St. | AZ23 | Tempe, AZ 85281 Phone: 602.713.2417 | Email: balaji.gan...@apollogrp.edu<mailto:balaji.gan...@apollogrp.edu> Go Green. Don't Print. Moreover soft copies can be indexed by algorithms. On Oct 18, 2012, at 6:47 PM, "Mark Miller-3 [via Lucene]" <ml-node+s472066n4014641...@n3.nabble.com<mailto:ml-node+s472066n4014641...@n3.nabble.com>> wrote: It depends on how you create your collection. If you want to pre configure your collection in solr.xml (collection1 comes this way), then everything depends on what you set for numShards on startup. If you wanted to have one collection across 4 nodes with 2 shards, each shard with 1 leader and 1 replica, you would simply startup 4 nodes with numShards=2 set on each of them (only the first matters, but to avoid races you can pass it to each). Since it knows you want two shards, all Solr nodes started that are configured with SolrCore's part of your collection will automatically join one of the two shards as replicas. So to summarize - it's totally determined by the numShards startup system property. If you are using the Collections API to create your collection, you can explicitly specify the replicationFactor as well as numShards. In this case, the replicationFactor you pass will limit how many replicas are created to the given value. This is so that, even if you have 100 nodes, you can create new collections that span 10, or 20 nodes, rather than using every node that is available. - Mark On Oct 18, 2012, at 8:12 PM, balaji.gandhi <[hidden email]</user/SendEmail.jtp?type=node&node=4014641&i=0>> wrote: > Hi Team, > > We are trying to configure replicationFactor in SolrCloud mode to specify a > minimum number of replicas in the cluster. > > We know that if (number of nodes) = 2 * (number of shards) Solr takes care > of the replication. > > Is there a way to force the replicationFactor when (number of nodes) < 2 * > (number of shards)? > > Looking to setup something like the below from SolrCloud wiki:- > http://people.apache.org/~markrmiller/2shard4server2.jpg > <http://people.apache.org/~markrmiller/2shard4server2.jpg> > > Thanks, > Balaji > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/SolrCloud-Configuring-replicationFactor-tp4014625.html > Sent from the Solr - User mailing list archive at > Nabble.com<http://Nabble.com>. ________________________________ If you reply to this email, your message will be added to the discussion below: http://lucene.472066.n3.nabble.com/SolrCloud-Configuring-replicationFactor-tp4014625p4014641.html To unsubscribe from SolrCloud - Configuring replicationFactor, click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4014625&code=YmFsYWppLmdhbmRoaUBhcG9sbG9ncnAuZWR1fDQwMTQ2MjV8LTEwNzE2NTA1NDI=>. NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> ________________________________ This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system. -- View this message in context: http://lucene.472066.n3.nabble.com/SolrCloud-Configuring-replicationFactor-tp4014625p4014645.html Sent from the Solr - User mailing list archive at Nabble.com.