Re: SolrCloud clarification/Question

2015-09-18 Thread Ravi Solr
Thank you very much Sameer, Erick and Upayavira. I got the solr cloud working !!! Hurray !! Cheers Ravi Kiran Bhaskar On Thu, Sep 17, 2015 at 3:10 AM, Upayavira wrote: > and replicationFactor is the number of copies of your data, not the > number of servers marked 'replica'.

Re: SolrCloud clarification/Question

2015-09-17 Thread Upayavira
and replicationFactor is the number of copies of your data, not the number of servers marked 'replica'. So as has been said, if you have one leader, and three replicas, your replicationFactor will be 4. Upayavira On Thu, Sep 17, 2015, at 03:29 AM, Erick Erickson wrote: > Ravi: > > Sameer is

SolrCloud clarification/Question

2015-09-16 Thread Ravi Solr
Hello, We are trying to move away from Master-Slave configuration to a SolrCloud environment. I have a couple of questions. Currently in the Master-Slave setup we have 4 Machines 2 of which are indexers and 2 of them are query servers. The query servers are fronted via Load Balancer.

Re: SolrCloud clarification/Question

2015-09-16 Thread Sameer Maggon
Absolutely. You can have a collection with just replicas and no shards for redundancy and have a load balancer in front of it that removes the dependency on a single node. One of them will assume the role of a leader, and in case that leader goes down, one of the replicas will be elected as a

Re: SolrCloud clarification/Question

2015-09-16 Thread Sameer Maggon
You'll have to say numShards=1 and replicationFactor=2. http:// [hostname]:8983/solr/admin/collections?action=CREATE=test=test=1=2 On Wed, Sep 16, 2015 at 11:23 AM, Ravi Solr wrote: > Thank you very much for responding Sameer so numShards=0 and > replicationFactr=4 if I

Re: SolrCloud clarification/Question

2015-09-16 Thread Sameer Maggon
I just gave an example API call, but for your scenario, the replicationFactor will be 4 (replicationFactor=4). In this way, all 4 machines will have the same copy of the data and you can put an LB in front of those 4 machines. On Wed, Sep 16, 2015 at 12:00 PM, Ravi Solr

Re: SolrCloud clarification/Question

2015-09-16 Thread Ravi Solr
OK...I understood numShards=1, when you say replicationFactor=2 what does it mean ? I have 4 machines, then, only 3 copies of data (1 at leader and 2 replicas) ?? so am i not under utilizing one machine ? I was more thinking in the lines of a Mesh connectivity format i.e. everybody has others

Re: SolrCloud clarification/Question

2015-09-16 Thread Ravi Solr
Thank you very much for responding Sameer so numShards=0 and replicationFactr=4 if I have 4 machines ?? Thanks Ravi Kiran Bhaskar On Wed, Sep 16, 2015 at 12:56 PM, Sameer Maggon wrote: > Absolutely. You can have a collection with just replicas and no shards for >

Re: SolrCloud clarification/Question

2015-09-16 Thread Erick Erickson
Ravi: Sameer is correct on how to get it done in one go. Don't get too hung up on replicationFactor. You can always ADDREPLICA after the collection is created if you need to. Best, Erick On Wed, Sep 16, 2015 at 12:44 PM, Sameer Maggon wrote: > I just gave an