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
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/



> On 8 Jun 2018, at 11:56, SOLR4189 <klin892...@yandex.ru> wrote:
> 
> 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>
>  
> :
> 
> /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, and the leader forwards the update to
> all of the other replicas./
> 
> So my question, what does happen when I'm sending index request to replica
> server instead leader server?
> 
> Replica becomes a leader for this request? Or replica becomes only federator
> that resends request to leader and then leader will resend to replica?
> 
> 
> 
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to