First, forget about master/slave with SolrCloud! Leaders really exist to resolve conflicts, the old notion of M/S replication is largely irrelevant.
Updates can go to any node in the cluster, leader, replica, whatever. The node forwards the doc to the correct leader based on a hash of the <uniqueKey>, which then forwards the raw document to all replicas. Then all the replicas index the document separately. Note that this is true on mutli-document packets too. You can't get NRT with the old-style replication process where the master indexes the doc and then the _index_ is replicated... As for your second question, it sounds like you want to go from numShards=2, say to numShards=3. You can't do that as it stands. There are two approaches: 1> "shard splitting" which would redistribute the documents to a new set of shards 2> pluggable hashing which allows you to specify the code that does the shard assignment. Neither of these are available yet, although <2> is imminent. There is active work on <1>, but I don't think that will be ready as soon. Best Erick On Tue, Dec 4, 2012 at 11:21 PM, Jason <hialo...@gmail.com> wrote: > I'm using master and slave server for scaling. > Master is dedicated for indexing and slave is for searching. > Now, I'm planning to move SolrCloud. > It has leader and replicas. > Leader acts like master and replicas acts like slave. Is it right? > so, I'm wondering two things. > > First, > How can I assign dedicated server for indexing in SolrCloud? > > Second, > Consider I'm using two shard cluster with shard replicas > < > http://wiki.apache.org/solr/SolrCloud#Example_B:_Simple_two_shard_cluster_with_shard_replicas > > > and I need to extend one more shard with replicas. > In this case, existing two shards and replicas will already have many docs. > so, I want to add indexing docs in new one only. > How can I do this? > > Actually, I don't understand perfectly about SolrCloud. > So, my questions can be ridiculous. > Any inputs are welcome. > Thanks, > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-to-assign-dedicated-server-for-indexing-and-add-more-shard-in-SolrCloud-tp4024404.html > Sent from the Solr - User mailing list archive at Nabble.com. >