You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by KNitin <ni...@gmail.com> on 2014/02/20 20:09:46 UTC
CloudServer 4.2.1 and SolrCloud 4.3.1
Hi
I have a question on CloudServer client for solrcloud. How does
CloudServer route requests to solr? Does it use round robin internally or
does it take into account any other parameter for the node (example how
many replicas it has, etc) ?
Thanks
Nitin
Re: CloudServer 4.2.1 and SolrCloud 4.3.1
Posted by KNitin <ni...@gmail.com>.
Thanks, Shawn.
On Thu, Feb 20, 2014 at 11:29 AM, Shawn Heisey <so...@elyograg.org> wrote:
> On 2/20/2014 12:09 PM, KNitin wrote:
>
>> I have a question on CloudServer client for solrcloud. How does
>> CloudServer route requests to solr? Does it use round robin internally or
>> does it take into account any other parameter for the node (example how
>> many replicas it has, etc) ?
>>
>
> Mixing SolrJ and Solr versions when you are using CloudSolrServer and
> SolrCloud is a bad idea right now. SolrCloud is evolving *VERY* quickly.
> At some point in the future there will be more stability between versions,
> but right now, success is unlikely unless they are the same version.
>
> By default, CloudSolrServer in version 4.2.1 will send updates to shard
> leaders (in a round-robin fashion). For queries, it uses a full
> round-robin. I *think* it will limit the round-robin to only nodes that
> are hosting that collection, but I'm not sure about that part.
>
> http://lucene.apache.org/solr/4_2_1/solr-solrj/org/apache/
> solr/client/solrj/impl/CloudSolrServer.html#CloudSolrServer%28java.lang.
> String,%20org.apache.solr.client.solrj.impl.LBHttpSolrServer,%20boolean%29
>
> Newer versions of CloudSolrServer (4.5.x if I remember correctly, and
> 4.6.x for sure) can route update requests directly to the leader of the
> correct shard. It does require the same version of Solr.
>
> Thanks,
> Shawn
>
>
Re: CloudServer 4.2.1 and SolrCloud 4.3.1
Posted by Shawn Heisey <so...@elyograg.org>.
On 2/20/2014 12:09 PM, KNitin wrote:
> I have a question on CloudServer client for solrcloud. How does
> CloudServer route requests to solr? Does it use round robin internally or
> does it take into account any other parameter for the node (example how
> many replicas it has, etc) ?
Mixing SolrJ and Solr versions when you are using CloudSolrServer and
SolrCloud is a bad idea right now. SolrCloud is evolving *VERY*
quickly. At some point in the future there will be more stability
between versions, but right now, success is unlikely unless they are the
same version.
By default, CloudSolrServer in version 4.2.1 will send updates to shard
leaders (in a round-robin fashion). For queries, it uses a full
round-robin. I *think* it will limit the round-robin to only nodes that
are hosting that collection, but I'm not sure about that part.
http://lucene.apache.org/solr/4_2_1/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrServer.html#CloudSolrServer%28java.lang.String,%20org.apache.solr.client.solrj.impl.LBHttpSolrServer,%20boolean%29
Newer versions of CloudSolrServer (4.5.x if I remember correctly, and
4.6.x for sure) can route update requests directly to the leader of the
correct shard. It does require the same version of Solr.
Thanks,
Shawn