mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
T6406: document cpu limit config option
This commit is contained in:
parent
d9fef261e7
commit
6742fa6314
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user