pub struct WorkloadRequirements {
pub total_cpu_at_max: f64,
pub total_memory_bytes_at_max: u64,
pub max_cpu_per_container: f64,
pub max_memory_per_container: u64,
pub max_ephemeral_storage_bytes: u64,
pub gpu: Option<GpuSpec>,
}Expand description
Aggregated resource requirements from all containers in a capacity group.
Fields§
§total_cpu_at_max: f64Total CPU needed at maximum scale (sum of desired CPU * max_replicas per container)
total_memory_bytes_at_max: u64Total memory needed at maximum scale (sum of desired memory * max_replicas per container)
max_cpu_per_container: f64Largest CPU request among all individual containers (single replica)
max_memory_per_container: u64Largest memory request among all individual containers (single replica)
max_ephemeral_storage_bytes: u64Maximum ephemeral storage any single container requires
gpu: Option<GpuSpec>GPU requirement (if any container needs GPU)
Trait Implementations§
Source§impl Clone for WorkloadRequirements
impl Clone for WorkloadRequirements
Source§fn clone(&self) -> WorkloadRequirements
fn clone(&self) -> WorkloadRequirements
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 moreAuto Trait Implementations§
impl Freeze for WorkloadRequirements
impl RefUnwindSafe for WorkloadRequirements
impl Send for WorkloadRequirements
impl Sync for WorkloadRequirements
impl Unpin for WorkloadRequirements
impl UnsafeUnpin for WorkloadRequirements
impl UnwindSafe for WorkloadRequirements
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