You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/05/09 10:43:25 UTC
[Solr Wiki] Trivial Update of "LBHttpSolrServer" by KojiSekiguchi
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by KojiSekiguchi:
http://wiki.apache.org/solr/LBHttpSolrServer
------------------------------------------------------------------------------
== How does it know if a server has come back up ? ==
LB!HttpSolrServer keeps pinging the dead servers once a minute (default val) to find if it is alive. The interval can be changed using
{{{
- lbHttpSolrServer.setAliveCheckInterval(60*1000); //time in seconds
+ lbHttpSolrServer.setAliveCheckInterval(60*1000); //time in milliseconds
}}}
The ping is done ikn a separate thread.
@@ -32, +32 @@
example:
{{{
//remove one
- lbHttpSolrServer.removeSolrServer("http://host2:8080/solr")
+ lbHttpSolrServer.removeSolrServer("http://host2:8080/solr");
//and add another
- lbHttpSolrServer.addSolrServer("http://host4:8080/solr")
+ lbHttpSolrServer.addSolrServer("http://host4:8080/solr");
}}}
== When to use this ? ==