pub struct DriverConfig {
pub datagram_byte_limit: usize,
pub datagram_count: usize,
pub context_count: usize,
}Expand description
Config a load generator reads to shape its output to this timeline’s SUT.
first_sample_config samples it beside datadog.yaml from one draw, so the
generator and the SUT are driven together.
Fields§
§datagram_byte_limit: usizeMax bytes a generator packs into one datagram, the smaller of the SUT’s
sampled receive buffer and DATAGRAM_BYTE_LIMIT. A datagram this size
fits one read, so the SUT never truncates a line mid-token.
datagram_count: usizeDatagrams a driver invocation ships this timeline.
context_count: usizeDistinct contexts a driver invocation fetches from the shared pool as its working set.
Sampled boundary-biased log-uniform in 1..=1_024. Valid values run 1..=65_536, the intake’s
per-request ceiling. Outside that the intake rejects every /contexts request, the driver waits
out its fetch budget and ships nothing, so Self::read rejects such a config rather than
letting a timeline generate no load. Every context in a pull gets a line in every datagram that
has room, so a larger pull makes fatter datagrams over more identities rather than thinner
series, and the trade is against how often any one identity recurs.
Implementations§
Trait Implementations§
Source§impl Clone for DriverConfig
impl Clone for DriverConfig
Source§fn clone(&self) -> DriverConfig
fn clone(&self) -> DriverConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more