pub enum FlushBatching {
Project,
Bucket,
Partition,
None,
}
Expand description
Configuration value for AggregatorConfig::flush_batching
.
Variants§
Project
Shifts the flush time by an offset based on the project key.
This allows buckets from the same project to be flushed together.
Bucket
Shifts the flush time by an offset based on the bucket key itself.
This allows for a completely random distribution of bucket flush times.
It should only be used in processing Relays since this flushing behavior it’s better suited for how Relay emits metrics to Kafka.
Partition
Shifts the flush time by an offset based on the partition key.
This allows buckets belonging to the same partition to be flushed together. Requires
flush_partitions
to be set, otherwise this will fall
back to FlushBatching::Project
.
It should only be used in Relays with the http.global_metrics
option set since when
encoding metrics via the global endpoint we can leverage partitioning.
None
Do not apply shift.
Trait Implementations§
Source§impl Clone for FlushBatching
impl Clone for FlushBatching
Source§fn clone(&self) -> FlushBatching
fn clone(&self) -> FlushBatching
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more