Class LoadBalancerPolicy
java.lang.Object
com.yahoo.documentapi.messagebus.protocol.SlobrokPolicy
com.yahoo.documentapi.messagebus.protocol.LoadBalancerPolicy
- All Implemented Interfaces:
DocumentProtocolRoutingPolicy
,com.yahoo.messagebus.routing.RoutingPolicy
Routing policy to load balance between nodes in a randomly distributed cluster, such as a docproc cluster.
pattern=<pattern> (mandatory, determines the pattern of nodes to send to)
slobroks=<comma-separated connectionspecs> (optional, list of slobroks to use to find the pattern)
config=<comma-separated list of config servers> (optional, list of config servers to use to find slobrok config) If both slobroks and config is specified, the list from slobroks is used.
slobroks=<comma-separated connectionspecs> (optional, list of slobroks to use to find the pattern)
config=<comma-separated list of config servers> (optional, list of config servers to use to find slobrok config) If both slobroks and config is specified, the list from slobroks is used.
- Author:
- Haakon Humberset
-
Method Summary
Methods inherited from class com.yahoo.documentapi.messagebus.protocol.SlobrokPolicy
lookup, parse
-
Method Details
-
select
public void select(com.yahoo.messagebus.routing.RoutingContext context) -
merge
public void merge(com.yahoo.messagebus.routing.RoutingContext context) -
destroy
public void destroy()
-