Re: SolrCloud Leader Response Mechanism

2013-04-16 Thread Furkan KAMACI
Replica asks to Zookeper and Leader does not do anything. Thanks for your answer Otis. 2013/4/17 Otis Gospodnetic > Oui, ZK holds "the map". > > Otis > -- > Solr & ElasticSearch Support > http://sematext.com/ > > > > > > On Tue, Apr 16, 2013 at 6:33 PM, Furkan KAMACI > wrote: > > Hi Otis; > > >

Re: SolrCloud Leader Response Mechanism

2013-04-16 Thread Otis Gospodnetic
Oui, ZK holds "the map". Otis -- Solr & ElasticSearch Support http://sematext.com/ On Tue, Apr 16, 2013 at 6:33 PM, Furkan KAMACI wrote: > Hi Otis; > > You said: > > "It can just do it because it knows where things are." > > Does it learn it from Zookeeper? > > 2013/4/17 Otis Gospodnetic >

Re: SolrCloud Leader Response Mechanism

2013-04-16 Thread Furkan KAMACI
Hi Otis; You said: "It can just do it because it knows where things are." Does it learn it from Zookeeper? 2013/4/17 Otis Gospodnetic > If query comes to shard X on some node and this shard X is NOT a > leader, but HAS data, it will just execute the query. If it needs to > query shards on ot

Re: SolrCloud Leader Response Mechanism

2013-04-16 Thread Otis Gospodnetic
If query comes to shard X on some node and this shard X is NOT a leader, but HAS data, it will just execute the query. If it needs to query shards on other nodes, it will have the info about which shards to query and will just do that and aggregate the results. It doesn't have to ask leader for p

Re: SolrCloud Leader Response Mechanism

2013-04-16 Thread Furkan KAMACI
Hi Mark; When I speak with proper terms I want to ask that: is there a data locality of spatial locality ( http://www.roguewave.com/portals/0/products/threadspotter/docs/2011.2/manual_html_linux/manual_html/ch_intro_locality.html - I mean if you have data on your machine, use it and don't search i

Re: SolrCloud Leader Response Mechanism

2013-04-16 Thread Mark Miller
Leaders don't have much to do with querying - the node that you query will determine what other nodes it has to query to search the whole index and do a scatter/gather for you. (Though in some cases that request can be proxied to another node) - Mark On Apr 16, 2013, at 7:48 AM, Furkan KAMACI

SolrCloud Leader Response Mechanism

2013-04-16 Thread Furkan KAMACI
When a leader responses for a query, does it says that: "If I have the data what I am looking for, I should build response with it, otherwise I should find it anywhere. Because it may be long to search it?" or does it says I only index the data, I will tell it to other guys to build up the response