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: String
Trait Implementations§
Source§impl Args for Update
impl Args for Update
Source§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
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl CommandFactory for Update
impl CommandFactory for Update
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
.