Thanks, as soon as I set up a third ZK server, it works like a charm.

On Thu, Apr 7, 2016 at 1:02 PM, prabhat singh <prabha...@gmail.com> wrote:

> Afaik the quorum has to be in majority for cluster to be active. With 2
> servers, a new leader cannot be selected by minority of less than 50%
> servers. Since you have just 2, so quorum is not reached for leader
> selection. That's why it is adviced to run odd number of nodes and minimum
> is 3. Hope that helps
>
> -----Original Message-----
> From: "Tamás Barta" <bartata...@gmail.com>
> Sent: ‎07-‎04-‎2016 04:17 PM
> To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> Subject: Re: Cluster
>
> Maybe I should ask a question instead how to set up a two-node solr cluster
> where both nodes contains the same data (collections are replicated to the
> other) and if I shut down one of the nodes the other node will work and i
> can send updates and queries to it. Is it possible?
>
> On Thu, Apr 7, 2016 at 11:32 AM, Tamás Barta <bartata...@gmail.com> wrote:
>
> > Hi,
> >
> > I'm new to Solr so maybe I don't understand Solr cluster right. I would
> > like to create a two-node cluster and the system should work if one of
> the
> > nodes is down.
> >
> > I created a collection in a node and set the other as replication. Now
> > when I open Cloud Graph I can see that one of the nodes is Leader and the
> > other is Active.
> >
> > When I shut down the Active node everything is OK.
> >
> > When I shut down the Leader node then the Active node become Recovering
> > and I can't search on it. It says "Could not find a healthy node to
> handle
> > the request.". In Solr logs I see the following errors:
> >
> > o.a.s.c.RecoveryStrategy Error while trying to recover.
> > core=products_shard1_replica1:org.apache.solr.common.SolrException: No
> > registered leader was found after waiting for 4000ms
> >
> > What should I do to set up a two-node cluster right?
> >
> > Thanks,
> > Tamas
> >
>

Reply via email to