FastestServerLB

io.ino.solrs.FastestServerLB
See theFastestServerLB companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Builder(solrServers: SolrServers, collectionAndTestQuery: SolrServer => (String, SolrQuery), minDelay: Duration, maxDelay: Duration, initialTestRuns: Int, filterFastServers: Long => ((SolrServer, Long)) => Boolean, mapPredictedResponseTime: Long => Long, isUpdatesToLeaders: Boolean, clock: Clock)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def builder(solrServers: SolrServers, collectionAndTestQuery: Function[SolrServer, (String, SolrQuery)]): Builder

Value parameters

collectionAndTestQuery

a function that returns the collection name and a testQuery for the given server. The collection is used to partition server when classifying "fast"/"slow" servers, because for different collections response times will be different. It's somehow similar with the testQuery: it might be different per server, e.g. some server might only provide a /suggest handler while others provide /select (which can be specified via the "qt" query param in the test query).

solrServers

solr servers to load balance, those are regularly tested.

Attributes

Concrete fields

val TestQueryClass: String