MigratableKernel

Trait MigratableKernel 

Source
pub trait MigratableKernel: CheckpointableKernel {
    // Required methods
    fn prepare_for_migration(&mut self) -> Result<()>;
    fn cancel_migration(&mut self) -> Result<()>;
    fn is_quiescent(&self) -> bool;
    fn estimated_state_size(&self) -> usize;
}
Expand description

Trait for kernels that support live migration.

Required Methods§

Source

fn prepare_for_migration(&mut self) -> Result<()>

Prepare kernel for migration (quiesce, drain messages).

Source

fn cancel_migration(&mut self) -> Result<()>

Resume kernel after migration is cancelled.

Source

fn is_quiescent(&self) -> bool

Check if kernel is ready to be checkpointed.

Source

fn estimated_state_size(&self) -> usize

Get estimated state size for migration planning.

Implementors§