Represents a list of IP address to be used by clients. Currently all selection is random through all of the address groups but other methods could be added
Pick a random tuple from the pool and return a random portion of one its address ranges
Pick a random node from the pool and return the node name portion
Expecting ‘nodename’, [CIDR, CIDR, ...]
Agent class that provides all of the variable receiving logic as well as some helper functions for common cases
Provides a method to handle start for traffic generation agents that make use of the clients and servers variables, functions serverExec and launchTrafficController() are called for you. serverExec() is a blank method, launchTrafficController() has an implementation already.
The answer to TGStart(), this method is used to handle stop events for traffic generation agents that use clients and servers, serverStop() and killing of processes in self.pids are called for you.
Blank implementation
Blank implementation
This provides an internal point to override just the loop behaviour, it retrieves random source and address values from the address pools, calls clientExec() and then waits for think time.
Get the values for all nodes listed under the key
Specific call for a node var, can be used to get var for another node besides our own
The default launcher called from TGStart(), it will fork off a new session leader process that uses the servers, think and sizes variables to launch clients. It will call clientOneLoop() repeatedly to start client processes. A simple implementation of clientOneLoop() is already provided.
Insert all of the variables, verifying/converting each
Blank implementation
Blank implementation