Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distribute Solr Using Replication without Using SolrCloud

I want to use Solr replication without using SolrCloud. I have three Solr servers, one is master and others are slave.

How to dispatch the search query on the Solr server which isn't busy?

What tools do and how to lead?

like image 915
htaghizadeh Avatar asked Aug 18 '15 06:08

htaghizadeh


1 Answers

You can use any load balancer - Solr talks HTTP, which makes any existing load balancing technology available. HAProxy, varnish, nginx, etc. will all work as you expect, and you'll be able to use all the advanced features that the different packages offer. It'll also be independent of the client, meaning that you're not limited to the LBHttpSolrServer class from SolrJ or what your particular client offers. Certain LB solutions also offer high throughput caching (varnish) or dynamic real time fallover between live nodes.

Another option we've also used successfully is to replicate the core to each web node, allowing us to always query localhost for searching.

like image 96
MatsLindh Avatar answered Sep 30 '22 16:09

MatsLindh