lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: Using solrcloud6 and solrj client with HAProxy.
Date Thu, 01 Sep 2016 12:48:44 GMT
On 9/1/2016 2:26 AM, Piyush Kunal wrote:
> But I want to give priority to some nodes (with better configuration)
> to have more load. Previously we used to use a HAproxy above all the
> nodes which we can easily configure to put high loads on some nodes.
> But if zookeeper is doing the load-balancing, is there some way where
> we can give more load to some nodes? (by using HAProxy or something)

You can use the load balancer URL with HttpSolrClient instead of using
the zookeeper information with CloudSolrClient.  At that point, you will
be dependent on haproxy to balance the load.  It probably will not react
as fast to servers going down as SolrCloud's built-in load balancing,
but it should work well.

Indexing with CloudSolrClient will be faster, because CloudSolrClient is
aware of where the shard leaders are and can send directly to them.

Using the Http client for queries and the Cloud client for indexing
might give you the best of both.

Thanks,
Shawn


Mime
View raw message