The following code illustrates the server selection:
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
3. Select the
host/port entry to use based on either of
- Interleaving - each client connects to a different
- 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.