Struct liboci_cli::Update
source · pub struct Update {Show 16 fields
pub resources: Option<PathBuf>,
pub blkio_weight: Option<u64>,
pub cpu_period: Option<u64>,
pub cpu_quota: Option<u64>,
pub cpu_rt_period: Option<u64>,
pub cpu_rt_runtime: Option<u64>,
pub cpu_share: Option<u64>,
pub cpuset_cpus: Option<String>,
pub cpuset_mems: Option<String>,
pub memory: Option<u64>,
pub memory_reservation: Option<u64>,
pub memory_swap: Option<i64>,
pub pids_limit: Option<i64>,
pub l3_cache_schema: Option<String>,
pub mem_bw_schema: Option<String>,
pub container_id: String,
}Expand description
Update running container resource constraints
Fields§
§resources: Option<PathBuf>Read the new resource limits from the given json file. Use - to read from stdin. If this option is used, all other options are ignored.
blkio_weight: Option<u64>Set a new I/O weight
cpu_period: Option<u64>Set CPU CFS period to be used for hardcapping (in microseconds)
cpu_quota: Option<u64>Set CPU usage limit within a given period (in microseconds)
cpu_rt_period: Option<u64>Set CPU realtime period to be used for hardcapping (in microseconds)
cpu_rt_runtime: Option<u64>Set CPU realtime hardcap limit (in microseconds)
Set CPU shares (relative weight vs. other containers)
cpuset_cpus: Option<String>Set CPU(s) to use. The list can contain commas and ranges. For example: 0-3,7
cpuset_mems: Option<String>Set memory node(s) to use. The list format is the same as for –cpuset-cpus.
memory: Option<u64>Set memory limit to num bytes.
memory_reservation: Option<u64>Set memory reservation (or soft limit) to num bytes.
memory_swap: Option<i64>Set total memory + swap usage to num bytes. Use -1 to unset the limit (i.e. use unlimited swap).
pids_limit: Option<i64>Set the maximum number of processes allowed in the container
l3_cache_schema: Option<String>Set the value for Intel RDT/CAT L3 cache schema.
mem_bw_schema: Option<String>Set the Intel RDT/MBA memory bandwidth schema.
container_id: StringTrait Implementations§
source§impl Args for Update
impl Args for Update
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl FromArgMatches for Update
impl FromArgMatches for Update
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§impl Parser for Update
impl Parser for Update
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os(), return Err on error.