Hi Ian,

What's the CPU doing on the leader? Have you tried attaching a
profiler to the leader while running and then seeing if there are any
hotspots showing. Not sure if this is related but we recently fixed an
issue in the area of leader forwarding to replica that used too many
CPU cycles inefficiently - see SOLR-6136.

Tim

On Wed, Jul 16, 2014 at 7:49 AM, ian <ian.willi...@wales.nhs.uk> wrote:
> That's useful to know, thanks very much.   I'll look into using
> CloudSolrServer, although I'm using solrnet at present.
>
> That would reduce some of the overhead - but not the extra 200ms I'm getting
> for forwarding to the replica when the replica is switched on.
>
> It does seem a very high overhead.  When I consider that it takes <20ms to
> insert a new document to Solr with replicas disabled (if I route to the
> correct shard), you might expect it to take two to three times longer if it
> has to forward to one replica and then wait for a response, but an increase
> of 200ms seems really high doesn't it?  Is there a forum where I should
> raise that?
>
> Thanks again for your help
> Ian
>
>
> Shalin Shekhar Mangar wrote
>> You can use CloudSolrServer (if you're using Java) which will route
>> documents correctly to the leader of the appropriate shard.
>>
>>
>> On Tue, Jul 15, 2014 at 3:04 PM, ian &lt;
>
>> Ian.Williams@.nhs
>
>> &gt; wrote:
>>
>>> Hi Mark
>>>
>>> Thanks for replying to my post.  Would you know whether my findings are
>>> consistent with what other people see when using SolrCloud?
>>>
>>> One thing I want to investigate is whether I can route my updates to the
>>> correct shard in the first place, by having my client using the same
>>> hashing
>>> logic as Solr, and working out in advance which shard my inserts should
>>> be
>>> sent to.  Do you know whether that's an approach that others have used?
>>>
>>> Thanks again
>>> Ian
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://lucene.472066.n3.nabble.com/Slow-inserts-when-using-Solr-Cloud-tp4146087p4147183.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>> Regards,
>> Shalin Shekhar Mangar.
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Slow-inserts-when-using-Solr-Cloud-tp4146087p4147481.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to