pub struct TierManagerConfig {Show 15 fields
pub enabled: bool,
pub scan_interval_seconds: u64,
pub migration_batch_size: usize,
pub max_concurrent_migrations: usize,
pub working_to_warm_threshold: f64,
pub warm_to_cold_threshold: f64,
pub cold_to_frozen_threshold: f64,
pub min_working_age_hours: u64,
pub min_warm_age_hours: u64,
pub min_cold_age_hours: u64,
pub target_migrations_per_second: u32,
pub log_migrations: bool,
pub max_retry_attempts: u32,
pub retry_delay_seconds: u64,
pub enable_metrics: bool,
}Fields§
§enabled: boolEnable automatic tier management
scan_interval_seconds: u64Interval between tier management scans in seconds
migration_batch_size: usizeBatch size for migration operations (memories per batch)
max_concurrent_migrations: usizeMaximum concurrent migration tasks
working_to_warm_threshold: f64Recall probability thresholds for tier migrations
warm_to_cold_threshold: f64§cold_to_frozen_threshold: f64§min_working_age_hours: u64Minimum age before considering migration (prevents rapid tier changes)
min_warm_age_hours: u64§min_cold_age_hours: u64§target_migrations_per_second: u32Migration performance targets
log_migrations: boolEnable migration history logging
max_retry_attempts: u32Migration failure retry configuration
retry_delay_seconds: u64§enable_metrics: boolEnable metrics collection for migration monitoring
Trait Implementations§
Source§impl Clone for TierManagerConfig
impl Clone for TierManagerConfig
Source§fn clone(&self) -> TierManagerConfig
fn clone(&self) -> TierManagerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 TierManagerConfig
impl Debug for TierManagerConfig
Source§impl Default for TierManagerConfig
impl Default for TierManagerConfig
Source§impl<'de> Deserialize<'de> for TierManagerConfig
impl<'de> Deserialize<'de> for TierManagerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TierManagerConfig
impl RefUnwindSafe for TierManagerConfig
impl Send for TierManagerConfig
impl Sync for TierManagerConfig
impl Unpin for TierManagerConfig
impl UnwindSafe for TierManagerConfig
Blanket Implementations§
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
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