Thanks Jeff and Erick. We figured to do document feeding on other port while previous port is shut down for load balancer. Once done we switch ports of solr.
Regards Preeti On Mon, May 23, 2016 at 10:58 PM, Jeff Wartes <jwar...@whitepages.com> wrote: > The PingRequestHandler contains support for a file check, which allows you > to control whether the ping request succeeds based on the presence/absence > of a file on disk on the node. > > > http://lucene.apache.org/solr/6_0_0/solr-core/org/apache/solr/handler/PingRequestHandler.html > > I suppose you could try using this to configure a load balancer. > > > On 5/20/16, 3:21 PM, "Erick Erickson" <erickerick...@gmail.com> wrote: > > >There really isn't any good way to do this built in that I know of. > > > >If your "clusters" are separate Solr collections (SolrCloud), you > >can use collection aliasing to point queries at one or the other > >atomically. > > > >This presumes you have some control over when DIH runs > >however. The idea is that you have an alias that you use for > >searching. You switch this alias to the "cold" cluster (the one > >that's not changing) and trigger a DIH run to to the "hot" cluster. > >Once that's done, change the alias to point to it or, perhaps, > >both. > > > >Best, > >Erick > > > >On Wed, May 18, 2016 at 11:27 PM, preeti kumari <preeti.bg...@gmail.com> > wrote: > >> Hi, > >> > >> I am using solr 5.2.1. I have two clusters Primary A and Primary B. > >> I was pinging servers to check whether they are up or not to route the > >> searches to working cluster A or B. > >> > >> But while I am running Full data import in Primary cluster A , There is > not > >> all the data and pinging servers will not help as my solr servers would > be > >> responding. > >> > >> But I want my searches to go to Cluster B instead of A. > >> > >> Please help me with a way from solr which can say solr not ready to > support > >> searches as full data import is running there. > >> > >> Thanks > >> Preeti > >