<api port="9000">
<balancer>
<clusters>
<cluster name="<<Name>>">
<node host="<<Hostname>>" port="<<Port>>" /> *
<cluster> *
</clusters>
[strategy] *
</balancer>
</api>
<api port="2000">
<balancer>
<clusters>
<cluster name="PROD">
<node host="node1.predic8.com" port="8080" />
<node host="node2.predic8.com" port="8090" />
<node host="node3.predic8.com" port="8100" />
<cluster>
</clusters>
</balancer>
</api>
Name | Required | Default | Description | Examples |
---|---|---|---|---|
name | false | Default |
Uniquely identifies this load balancer, if there is more than one. Used in the web administration interface and lbclient to manage nodes.
|
balancer1 |
sessionTimeout | false | 3600000 |
Time in milliseconds after which sessions time out. (If a session extractor is used.) Default is 1 hour, 0 means never.
|
600000 (10min) |
Elements | Description | Cardinality |
---|---|---|
xmlSessionIdExtractor | Sets the strategy used to extract a session ID from incoming HTTP requests. | 0..1 |
jSessionIdExtractor | Sets the strategy used to extract a session ID from incoming HTTP requests. | 0..1 |
sessionIdExtractor | Sets the strategy used to extract a session ID from incoming HTTP requests. | 0..1 |
clusters | Specifies a list of clusters. | 0..* |
byThreadStrategy | Sets the strategy used to choose the backend nodes. | 0..1 |
priorityStrategy | Sets the strategy used to choose the backend nodes. | 0..1 |
faultMonitoringStrategy | Sets the strategy used to choose the backend nodes. | 0..1 |
roundRobinStrategy | Sets the strategy used to choose the backend nodes. | 0..1 |