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 >