pub struct WatchdogConfig {
pub warn_pct: f64,
pub critical_pct: f64,
pub poll_interval_ms: u64,
pub auto_checkpoint: bool,
}Expand description
Thresholds for memory pressure alerts.
Fields§
§warn_pct: f64Warning threshold (percentage). Default: 85%.
critical_pct: f64Critical threshold (percentage). Default: 95%.
poll_interval_ms: u64Polling interval in milliseconds. Default: 2000.
auto_checkpoint: boolSend SIGUSR1 to training processes at critical threshold.
Trait Implementations§
Source§impl Clone for WatchdogConfig
impl Clone for WatchdogConfig
Source§fn clone(&self) -> WatchdogConfig
fn clone(&self) -> WatchdogConfig
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 WatchdogConfig
impl Debug for WatchdogConfig
Auto Trait Implementations§
impl Freeze for WatchdogConfig
impl RefUnwindSafe for WatchdogConfig
impl Send for WatchdogConfig
impl Sync for WatchdogConfig
impl Unpin for WatchdogConfig
impl UnwindSafe for WatchdogConfig
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