From: Demian K. <dem...@vi...> - 2013-03-18 16:41:22
|
Have you looked at SolrCloud in Solr 4.x? If I understand this correctly, the SolrCloud ZooKeeper serves more or less the same function as the Apache proxy you set up. Obviously there still might need to be some kind of failover logic on the VuFind side (what do you do if the ZooKeeper fails?) but it's my understanding that the whole point of SolrCloud is to help with situations like the one you describe. - Demian > -----Original Message----- > From: Tuan Nguyen [mailto:tu...@yo...] > Sent: Monday, March 18, 2013 12:20 PM > To: vufind-tech Tech > Subject: [VuFind-Tech] high availability question > > Hi everyone, > > I am pondering the idea of have of modifying the sys/Solr.php and > sys/ConnectionManager.php to allow for a list of SOLR servers to try upon > failure or to switch to a different solr host if the response time is not > adequate. > > Has anyone done this? If so, would you please share your experience and/or > code. > > We currently have 2 solr instances sitting on 2 servers. We have apache > mod_proxy sitting in front and pass connections to the 2 back-end solr > instances. At this time we have one server set up as hot failover. This has > been working quite well. However, it requires setting up apache to direct > requests. One of the problem that we have been seeing is that when the main > SOLR instance is busy, the requests keep piling on and failover does not kick > in until that instance is dead. Ideally, I would like to have the failover > happens as soon as the request takes for than 2 or 3 seconds, thus giving the > users an adequate response time as well as relieving the stress on the other > server. > > I am thinking of implementing this functionality inside of sys/Solr.php, but I > am hoping I don't have to. > > Thanks, > Tuan > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Vufind-tech mailing list > Vuf...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-tech |