pub struct MigrationConfig {
pub overload_threshold: f32,
pub underutilization_threshold: f32,
pub min_imbalance_threshold: f32,
pub transfer_cost_base: f64,
pub transfer_cost_per_byte: f64,
pub min_migration_size: u64,
pub max_pending_migrations: usize,
pub migration_cooldown_secs: u64,
pub enable_predictive_migration: bool,
pub history_window_size: usize,
pub memory_weight: f32,
pub compute_weight: f32,
}Expand description
Configuration for workload migration decisions
Fields§
§overload_threshold: f32Utilization threshold above which a GPU is considered overloaded (0.0 to 1.0)
underutilization_threshold: f32Utilization threshold below which a GPU is considered underutilized (0.0 to 1.0)
min_imbalance_threshold: f32Minimum utilization difference to trigger migration
transfer_cost_base: f64Base cost for data transfer (in arbitrary units representing time)
transfer_cost_per_byte: f64Cost per byte transferred (in arbitrary units)
min_migration_size: u64Minimum workload size to consider for migration (bytes)
max_pending_migrations: usizeMaximum pending migrations per device
migration_cooldown_secs: u64Cooldown period between migrations for same device (seconds)
enable_predictive_migration: boolWhether to enable predictive migration based on trends
history_window_size: usizeHistory window size for trend analysis
memory_weight: f32Weight for memory pressure in migration decisions (0.0 to 1.0)
compute_weight: f32Weight for compute utilization in migration decisions (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for MigrationConfig
impl Clone for MigrationConfig
Source§fn clone(&self) -> MigrationConfig
fn clone(&self) -> MigrationConfig
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 MigrationConfig
impl Debug for MigrationConfig
Auto Trait Implementations§
impl Freeze for MigrationConfig
impl RefUnwindSafe for MigrationConfig
impl Send for MigrationConfig
impl Sync for MigrationConfig
impl Unpin for MigrationConfig
impl UnsafeUnpin for MigrationConfig
impl UnwindSafe for MigrationConfig
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