If you are not using the Load Manager and you want to
direct the connection to a particular machine out of a range of the
servers that you have predefined, specify weights for each machine.
For example, if you have two computers running Application Servers,
each machine has a one-in-two chance of receiving a request from the
Application Broker. The Application Broker randomly selects one of
your predefined servers. To increase the likelihood that a server
receives requests, assign a weight to the machine in the server directive,
as shown in the following example:
server machine_a machine_b*5
Server A now has only
a one-in-six chance of receiving a request. Server B now has a five-in-six
chance. You could rewrite the previous example to show the following
and attain the same result. The weight assignment of 5 eliminates
the need to type the following line:
server machine_a machine_b machine_b machine_b machine_b machine_b
If you are using the
Load Manager, you can use weights to reorder the list of servers in
the service. The servers with higher weights appear first in the list
that is sent to the Load Manager. Because the Load Manager always
selects the first available server in the list, those with higher
weights are selected first.