pub struct PoolConfig {Show 13 fields
pub hypervisor: HypervisorType,
pub hypervisor_path: PathBuf,
pub max_sandboxes: usize,
pub warm_pool_size: usize,
pub vm_image: PathBuf,
pub kernel_path: PathBuf,
pub cloud_init_dir: PathBuf,
pub runtime_dir: PathBuf,
pub vm_memory_mb: u64,
pub vm_cpus: u32,
pub create_timeout_secs: u64,
pub stop_timeout_secs: u64,
pub admission: AdmissionConfig,
}Expand description
Configuration for the sandbox pool (Kata VM management)
Fields§
§hypervisor: HypervisorTypeHypervisor to use for VM management
hypervisor_path: PathBufPath to hypervisor binary (for cloud-hypervisor) If empty, uses PATH lookup
max_sandboxes: usizeMaximum number of active sandboxes (VMs)
warm_pool_size: usizeNumber of pre-warmed sandboxes to keep ready
vm_image: PathBufPath to the base VM image
kernel_path: PathBufPath to the VM kernel
cloud_init_dir: PathBufPath to cloud-init templates directory
runtime_dir: PathBufRuntime directory for sandbox sockets and state
vm_memory_mb: u64VM memory in MB
vm_cpus: u32VM CPUs
create_timeout_secs: u64Timeout for sandbox creation in seconds
stop_timeout_secs: u64Timeout for sandbox stop in seconds
admission: AdmissionConfigAdmission control: per-Subject/per-group quotas, bounded wait-queue,
and declared local schedulable capacity for SandboxPool::acquire’s
decision engine (#525 P2).
🔒 See AdmissionConfig’s doc for the judgment calls this shape
bakes in (flagged for reviewer sign-off). Defaults are unconstrained,
so an operator who does not set this section gets exactly the
pre-#525 behavior (only max_sandboxes capacity is enforced).
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PoolConfig
impl Debug for PoolConfig
Source§impl Default for PoolConfig
impl Default for PoolConfig
Source§impl<'de> Deserialize<'de> for PoolConfigwhere
PoolConfig: Default,
impl<'de> Deserialize<'de> for PoolConfigwhere
PoolConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnsafeUnpin for PoolConfig
impl UnwindSafe for PoolConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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