People usually just have the slaves know about each other via the
configuration files (here's a good reference as well as a gotcha,
http://lucene.472066.n3.nabble.com/how-to-have-quot-shards-quot-parameter-by-default-td884519.html).

The idea is that you configure a search handler to automatically
distribute the requests to the other shards. This configuration
is on *all* of the shards so they all know about each other.

Then just use your load balancer to send the query to *one*
of the shards, the rest is automatic.

Best
Erick

On Thu, Jan 5, 2012 at 4:46 PM, Suneel <pandey.sun...@gmail.com> wrote:
> So scenario A (round-robin):
>
> query 1: /solr-shard-1/select?q=dog... shards=shard-1,shard2
> query 2: /solr-shard-2/select?q=dog... shards=shard-1,shard2
> query 3: /solr-shard-1/select?q=dog... shards=shard-1,shard2
> etc.
>
> or or scenario B (fixed):
>
> query 1: /solr-shard-1/select?q=dog... shards=shard-1,shard2
> query 2: /solr-shard-1/select?q=dog... shards=shard-1,shard2
> query 3: /solr-shard-1/select?q=dog... shards=shard-1,shard2
> etc.
>
> I want to use round-robin for load balancing and got this piece of code.
> please anyone describe me about query.
>
> -----
> Suneel Pandey
> Sr. Software Developer
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Round-Robin-concept-in-distributed-Solr-tp3636345p3636345.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to