SolrCloud load-balancing

前端 未结 2 1696
遥遥无期
遥遥无期 2021-01-12 05:03

i\'m working on a .NET application that uses Solr as Search Engine. I had configured a SolrCloud installation with two server (one for Replica) and i didn\'t split the index

相关标签:
2条回答
  • 2021-01-12 05:11

    Since you only have a single shard, the server that is receiving the request will respond with the result, it will not perform another request to the other replica when it has the data locally. The Java CloudSolrServer client connects to ZooKeeper and knows which servers are up or down and will perform load balancing appropriately across all active servers. I don't believe there are any ports .NET ports available for this specific client.

    0 讨论(0)
  • 2021-01-12 05:23

    I've tested this solution and it works. Adding the various shard addresses in the field "shards" separated by the character "|" forces Solr to call the internal load balancer (LBHttpSolrServer) that performs a simple round robin balancing.

    0 讨论(0)
提交回复
热议问题