runc-update - update running container resource constraints
Contents
Description
The update command change the resource constraints of a running container instance.
The resources can be set using options, or, if -r is used, parsed from JSON provided as a file or from
stdin.
In case -r is used, the JSON format is like this:
{
"memory": {
"limit": 0,
"reservation": 0,
"swap": 0,
"kernel": 0,
"kernelTCP": 0
},
"cpu": {
"shares": 0,
"quota": 0,
"burst": 0,
"period": 0,
"realtimeRuntime": 0,
"realtimePeriod": 0,
"cpus": "",
"mems": ""
},
"blockIO": {
"blkioWeight": 0
}
}
Name
runc-update - update running container resource constraints
Options
--resources|-rresources.json
Read the new resource limits from resources.json. Use - to read from stdin. If this option is
used, all other options are ignored.
--blkio-weightweight
Set a new io weight.
--cpu-periodnum
Set CPU CFS period to be used for hardcapping (in microseconds)
--cpu-quotanum
Set CPU usage limit within a given period (in microseconds).
--cpu-burstnum
Set CPU burst limit within a given period (in microseconds).
--cpu-rt-periodnum
Set CPU realtime period to be used for hardcapping (in microseconds).
--cpu-rt-runtimenum
Set CPU realtime hardcap limit (in usecs). Allowed cpu time in a given period.
--cpu-sharenum
Set CPU shares (relative weight vs. other containers).
--cpuset-cpuslist
Set CPU(s) to use. The list can contain commas and ranges. For example: 0-3,7.
--cpuset-memslist
Set memory node(s) to use. The list format is the same as for --cpuset-cpus.
--memorynum
Set memory limit to num bytes.
--memory-reservationnum
Set memory reservation, or soft limit, to num bytes.
--memory-swapnum
Set total memory + swap usage to num bytes. Use -1 to unset the limit (i.e. use unlimited swap).
--pids-limitnum
Set the maximum number of processes allowed in the container.
--l3-cache-schemavalue
Set the value for Intel RDT/CAT L3 cache schema.
--mem-bw-schemavalue
Set the Intel RDT/MBA memory bandwidth schema.
See Also
runc(8). runc-update(8)
Synopsis
runcupdate [option ...] container-idruncupdate-rresources.json|-container-id
