pub struct CompressionLocalityConfig {
pub enabled: bool,
pub max_compression_shards: usize,
pub max_split_depth: u8,
pub min_split_records: usize,
pub min_split_bytes: u64,
pub split_variance_q8: u16,
pub max_shard_variance_q8: u16,
pub max_assignment_distance: u8,
pub min_admission_bytes: u64,
pub state_budget_bytes: usize,
}Expand description
Bounded settings for one stripe-local block collator.
Fields§
§enabled: boolEnables block scoring, splitting, and compression-shard placement.
max_compression_shards: usizeMaximum active compression shards owned by one stripe.
max_split_depth: u8Maximum recursive farthest-seed split depth.
min_split_records: usizeMinimum records required in each child of a split.
min_split_bytes: u64Minimum source bytes required in each child of a split.
split_variance_q8: u16Split blocks above this byte-weighted Q8 variance.
max_shard_variance_q8: u16Do not train a specialized shard with a worse leaf variance.
max_assignment_distance: u8Maximum locality distance for assigning a block to an existing shard.
min_admission_bytes: u64Minimum leaf bytes needed to create a new compression shard.
state_budget_bytes: usizeMaximum memory reserved for persistent collation profiles.
Trait Implementations§
Source§impl Clone for CompressionLocalityConfig
impl Clone for CompressionLocalityConfig
Source§impl Debug for CompressionLocalityConfig
impl Debug for CompressionLocalityConfig
Source§impl Default for CompressionLocalityConfig
impl Default for CompressionLocalityConfig
impl Eq for CompressionLocalityConfig
impl StructuralPartialEq for CompressionLocalityConfig
Auto Trait Implementations§
impl Freeze for CompressionLocalityConfig
impl RefUnwindSafe for CompressionLocalityConfig
impl Send for CompressionLocalityConfig
impl Sync for CompressionLocalityConfig
impl Unpin for CompressionLocalityConfig
impl UnsafeUnpin for CompressionLocalityConfig
impl UnwindSafe for CompressionLocalityConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request