1. Using a
fa:hostConfig/fa:hostPorts element in the
configuration file to tell Faban about the multiple hosts being used.
2. In the driver object's constructor, parse the
hostPorts
field.
3. Select the
host/port entry to use based on either of
these policies:
- Interleaving - each client connects to a different
server, subsequently.
- Block select - the total number of clients are divided
into blocks and each block uses it's server. In this latter case, if
you have 2 servers and configure 2 agents, each agent will connect to a
different server as a result.
The following code illustrates the server selection: