pub struct TierPolicy {
pub hot_threshold_access_rate: f64,
pub warm_threshold_access_rate: f64,
pub cold_threshold_access_rate: f64,
}Expand description
Access-rate thresholds that govern classification into tiers.
A block is placed in the highest tier whose threshold it meets:
access_rate >= hot_threshold→Hotaccess_rate >= warm_threshold→Warmaccess_rate >= cold_threshold→Cold- otherwise →
Archive
Fields§
§hot_threshold_access_rate: f64Minimum accesses/sec to remain in Hot tier (default: 1.0).
warm_threshold_access_rate: f64Minimum accesses/sec to remain in Warm tier (default: 0.1).
cold_threshold_access_rate: f64Minimum accesses/sec to remain in Cold tier (default: 0.01).
Implementations§
Source§impl TierPolicy
impl TierPolicy
Sourcepub fn classify(&self, access_rate: f64) -> StorageTier
pub fn classify(&self, access_rate: f64) -> StorageTier
Classify a block given its current access_rate (accesses per second).
Trait Implementations§
Source§impl Clone for TierPolicy
impl Clone for TierPolicy
Source§fn clone(&self) -> TierPolicy
fn clone(&self) -> TierPolicy
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 TierPolicy
impl Debug for TierPolicy
Auto Trait Implementations§
impl Freeze for TierPolicy
impl RefUnwindSafe for TierPolicy
impl Send for TierPolicy
impl Sync for TierPolicy
impl Unpin for TierPolicy
impl UnsafeUnpin for TierPolicy
impl UnwindSafe for TierPolicy
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