pub struct OstTierConfig {
pub hot_capacity_bytes: u64,
pub warm_capacity_bytes: u64,
pub cold_capacity_bytes: u64,
pub policy: OstTierPolicy,
pub promotion_threshold: u32,
pub demotion_interval_us: u64,
}Expand description
Capacity and policy configuration for the tiering engine.
Ost prefix avoids collision with TierConfig in tiering.
Fields§
§hot_capacity_bytes: u64Maximum bytes that can live in the Hot tier.
warm_capacity_bytes: u64Maximum bytes that can live in the Warm tier.
cold_capacity_bytes: u64Maximum bytes for the Cold tier (u64::MAX = effectively unlimited).
policy: OstTierPolicyPolicy that drives automatic promotions and demotions.
promotion_threshold: u32Access-count threshold for Warm → Hot promotion.
demotion_interval_us: u64How often (in microseconds) to check for cold-eligible objects.
Trait Implementations§
Source§impl Clone for OstTierConfig
impl Clone for OstTierConfig
Source§fn clone(&self) -> OstTierConfig
fn clone(&self) -> OstTierConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OstTierConfig
impl Debug for OstTierConfig
Auto Trait Implementations§
impl Freeze for OstTierConfig
impl RefUnwindSafe for OstTierConfig
impl Send for OstTierConfig
impl Sync for OstTierConfig
impl Unpin for OstTierConfig
impl UnsafeUnpin for OstTierConfig
impl UnwindSafe for OstTierConfig
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<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 more