lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: how to assign dedicated server for indexing and add more shard in SolrCloud
Date Thu, 06 Dec 2012 15:19:16 GMT
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
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.


On Tue, Dec 4, 2012 at 11:21 PM, Jason <> 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
> <
> >
> 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:
> Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message