pub struct ContainerResourceConfig {
pub cpu_period: Option<u64>,
pub cpu_quota: Option<i64>,
pub oom_score_adj: Option<i64>,
pub r_limits: Option<Vec<PosixRlimit>>,
pub resource_limits: Option<LinuxResources>,
pub throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub unified: Option<HashMap<String, String>>,
pub weight_device: Option<HashMap<String, LinuxWeightDevice>>,
}
Fields§
§cpu_period: Option<u64>
CPU period of the cpuset, determined by –cpus
cpu_quota: Option<i64>
CPU quota of the cpuset, determined by –cpus
oom_score_adj: Option<i64>
OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container’s process. Optional.
r_limits: Option<Vec<PosixRlimit>>
Rlimits are POSIX rlimits to apply to the container. Optional.
resource_limits: Option<LinuxResources>
§throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice>>
IO read rate limit per cgroup per device, bytes per second
throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice>>
IO read rate limit per cgroup per device, IO per second
throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice>>
IO write rate limit per cgroup per device, bytes per second
throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice>>
IO write rate limit per cgroup per device, IO per second
unified: Option<HashMap<String, String>>
CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional.
weight_device: Option<HashMap<String, LinuxWeightDevice>>
Weight per cgroup per device, can override BlkioWeight
Trait Implementations§
Source§impl Clone for ContainerResourceConfig
impl Clone for ContainerResourceConfig
Source§fn clone(&self) -> ContainerResourceConfig
fn clone(&self) -> ContainerResourceConfig
Returns a copy 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 ContainerResourceConfig
impl Debug for ContainerResourceConfig
Source§impl<'de> Deserialize<'de> for ContainerResourceConfig
impl<'de> Deserialize<'de> for ContainerResourceConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContainerResourceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContainerResourceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContainerResourceConfig
impl PartialEq for ContainerResourceConfig
Source§impl Serialize for ContainerResourceConfig
impl Serialize for ContainerResourceConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ContainerResourceConfig
Auto Trait Implementations§
impl Freeze for ContainerResourceConfig
impl RefUnwindSafe for ContainerResourceConfig
impl Send for ContainerResourceConfig
impl Sync for ContainerResourceConfig
impl Unpin for ContainerResourceConfig
impl UnwindSafe for ContainerResourceConfig
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