Load balancer for solrcloud

那年仲夏 提交于 2019-12-12 02:08:24

问题


We are hitting one of the solr instances in solrcloud architecture directly from a .Net application. If that instance is down, then the request need to be served by another live instance. This is possible with load balancer. What options are available for this and which can be used best? Solr cloud is in Windows. Please suggest since Solrj is not being used here. Thanks in advance.


回答1:


Any load balancer would do. We are using nginx without trouble.

If you need something analogous to SolrJ, nothing stops you from writing some .Net code that queries zookeeper about status of different collection/shards etc. You put it in a library and can use it from your .Net code transparently. As a bonus you could get less roundtrips between Solr nodes as you could find out which is the shard a doc needs to go to, and send updates always to the shard leader.



来源:https://stackoverflow.com/questions/42699403/load-balancer-for-solrcloud

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!