diff options
author | Nicolas Vollmar <nvollmar@gmail.com> | 2024-05-27 20:11:32 +0200 |
---|---|---|
committer | Nicolas Vollmar <nvo@scaling.ch> | 2024-05-28 07:39:22 +0200 |
commit | 6742fa6314fdf448f814d18dac70a638587b75e6 (patch) | |
tree | 5d785dab09a52ac1f01afd7d38cb9f193d3fee5e | |
parent | d9fef261e770cb45d5f02ae5e448590c7f6fead1 (diff) | |
download | vyos-documentation-6742fa6314fdf448f814d18dac70a638587b75e6.tar.gz vyos-documentation-6742fa6314fdf448f814d18dac70a638587b75e6.zip |
T6406: document cpu limit config option
-rw-r--r-- | docs/configuration/container/index.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/configuration/container/index.rst b/docs/configuration/container/index.rst index 4dacc6f4..39d7872c 100644 --- a/docs/configuration/container/index.rst +++ b/docs/configuration/container/index.rst @@ -133,6 +133,17 @@ Configuration - **always**: Restart containers when they exit, regardless of status, retrying indefinitely +.. cfgcmd:: set container name <name> cpus <num> + + This specifies the number of CPU resources the container can use. + + Default is 0 for unlimited. + For example, 1.25 limits the container to use up to 1.25 cores + worth of CPU time. + This can be a decimal number with up to three decimal places. + + The command translates to "--cpus=<num>" when the container is created. + .. cfgcmd:: set container name <name> memory <MB> Constrain the memory available to the container. |