Message that runs an operation analogously to org.apache.solr.client.solrj.impl.LBHttpSolrServer#request(org.apache.solr.client.solrj.impl.LBHttpSolrServer.Req)
Message that runs an operation analogously to org.apache.solr.client.solrj.impl.LBHttpSolrServer#request(org.apache.solr.client.solrj.impl.LBHttpSolrServer.Req)
operation to run
a list of servers to try that don't necessarily have to be the same servers that the LBClientConnection was created to handle
The number of dead servers to try if there are no live servers left. Defaults to the number of servers in this request if the number is less than 0.
An actor for load-balancing requests between Solr servers. Based directly on org.apache.solr.client.solrj.impl.LBHttpSolrServer so its notes on indexing hold for this implementation. Isn't strictly round robin (and neither is the original, due to error handling and retries), but tries servers in random order for every request (so roughly equal distribution over time). The random query sequences always try "zombie" servers after all "live" servers have been tried. Doesn't provide ability to add/remove servers after creation, but could easily be added. The capability to query all servers in parallel and return the first successful response isn't currently implemented, but could easily be added.
org.apache.solr.client.solrj.impl.LBHttpSolrServer