The brick's threaded components transfer VCs between the individual
components used the standard python Queue object. The following queues
are used by the AddancBrick:
a queue to hold new minted VCs.
a queue to hold VCs with
a queue to hold VCs who have
completed a transaction and must process response and the prepare
the next transactoin.
a queue to hold VCs which
need to perform the <wait> specified in the VC's script.
a queue of no longer functioning VC waiting
to have their instrumentation and metric written to the data file.
Brick Threaded Components
Provides overall monitoring and control functions, schedules and
Builds and initialize an inventory of new VC, runs whenever signalled on the vcConsumed condition
object. Builds inventory up to DEFAULT_MIN_NEW_VC_QUEUE_DEPTHconfigured
level before retiring to wait on another vcConsumed signal.
Starts new VCs at a rate
determined by the test's specified arrival rate. Reads from the newVCQue and
writes to the runQue.Upon
starting, the vcSignalGeneratorwaits
on the startVCSignalGeneratorcondition
before generating new VCs at
the specified rate and continues to generate VCs until either stopTest or stopTestImmedialy events
Generates transactions for VCs on
the runQue. Provides
basic HTTP/HTTPS functionality via several threads:
pool) - A configurable pool of select threads, each of which reads from
the RunQue, performs a connect for the VC,
and transfers the VC to the selecThread's
internal send/recv lists.
A single select thread to handle all reads/writes asynchronously. When
transaction has been completed, moves the VC to the processQue
Reads from the processQ,
allows the VC to process the
HTTP response before moving to the next transaction. Setup and
initialize the next transaction. Writes to the waitQue,
or the deadQue
depending on the state of the VC.
Keeps a VC suspended for the <wait>
period specified in the VC's
script. Enables the VC when
waut time has expired. Reads from the waitQue, writes to the runQue
Writes response time metrics to the instrumentation file. Reads from
Provides threaded interface to the jabber server and AddancCommander
Writes VC accounting and
queue statistics to the log at configurable time intervals. Can also
send the same information to the AddancCommander via
the jabber interface.
vcConsumedcondition object - signaled by the
vcSignalGenerator when ever it uses one of the inventoried VCs from the
startVCSignalGeneratorcondition object - signaled by the brickControlThread to
tell the vcSignalGeneratorto
start a test.
stopTestevent object - set by any thread to
signal that the current test should stop
stopTestImmediatlyevent object - set by any thread
to signal that the current test should stop immediatly.