Expand description
Producer and consumer workload runners.
This module builds N producers and M consumers as members of one group, runs
the warmup phase and then the measurement phase, triggers an optional
failover mid-measurement, and merges the per-task histograms into the public
LatencyPercentiles shape.
Structs§
- Client
Identity - The PEM files of an mTLS client identity.
- Consumer
Build Attempts - How many times the driver tries to build a consumer before it gives up.
- Consumer
Build Retry Policy - Driver
Config - Parameters wired in from
mainand the CLI. This struct is distinct fromScenariobecause the scenario YAML describes what to run, and this struct describes where it runs. - TlsParams
- TLS knobs for the producer and consumer data path.
Constants§
- DEFAULT_
CONSUMER_ BUILD_ ATTEMPTS - DEFAULT_
CONSUMER_ BUILD_ INITIAL_ BACKOFF - DEFAULT_
CONSUMER_ BUILD_ MAX_ BACKOFF - DEFAULT_
CONSUMER_ POLL_ ERROR_ BACKOFF - DEFAULT_
CONSUMER_ POLL_ TIMEOUT - DEFAULT_
KAFKA_ CONSUMER_ REQUEST_ TIMEOUT - DEFAULT_
KRABKA_ CONSUMER_ REQUEST_ TIMEOUT - DEFAULT_
PRODUCER_ FINAL_ DRAIN_ TIMEOUT - DEFAULT_
PRODUCER_ REQUEST_ TIMEOUT - DEFAULT_
SAMPLE_ INTERVAL - MAX_
CLIENT_ REQUEST_ TIMEOUT
Functions§
- default_
consumer_ build_ initial_ backoff - default_
consumer_ build_ max_ backoff - default_
consumer_ poll_ error_ backoff - default_
consumer_ poll_ timeout - default_
consumer_ request_ timeout - Return the validated consumer request-timeout default for
stack. - default_
producer_ request_ timeout - Return the validated producer request-timeout default.
- run
- Top-level entry point that
maincalls. Returns the populatedRunOutput. The caller must serialise it to disk.