Re: Indexing to replica instead leader

2018-06-14 Thread Shawn Heisey
On 6/8/2018 3:56 AM, SOLR4189 wrote: > /When a document is sent to a Solr node for indexing, the system first > determines which Shard that document belongs to, and then which node is > currently hosting the leader for that shard. The document is then forwarded > to the current leader for indexing,

Re: Indexing to replica instead leader

2018-06-12 Thread Erick Erickson
R4189 > Reply-To: "solr-user@lucene.apache.org" > Date: Friday, June 8, 2018 at 6:03 AM > To: "solr-user@lucene.apache.org" > Subject: Indexing to replica instead leader > > I'm using SOLR 6.5.1 in cloud mode with replicas. I read here > <https://luc

Re: Indexing to replica instead leader

2018-06-12 Thread Dhutia, Devansh
18 at 6:03 AM To: "solr-user@lucene.apache.org" Subject: Indexing to replica instead leader I'm using SOLR 6.5.1 in cloud mode with replicas. I read here <https://lucene.apache.org/solr/guide/7_0/shards-and-indexing-data-in-solrcloud.html<https://lucene.apache.org/solr/guide/

Re: Indexing to replica instead leader

2018-06-08 Thread Emir Arnautović
Hi, Indexing request will always go to leader first. If you are using Solrj and if you initialise it with ZK, it will be aware which node has leader for which document and will send it there. Otherwise, there is a chance of this additional roundtrip replica->leader->replica. HTH, Emir -- Monito

Indexing to replica instead leader

2018-06-08 Thread SOLR4189
I'm using SOLR 6.5.1 in cloud mode with replicas. I read here : /When a document is sent to a Solr node for indexing, the system first determines which Shard that document belongs to, and then which node is cu