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