mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
Merge pull request #1468 from vyos/mergify/bp/sagitta/pr-1462
T6406: document cpu limit config option (backport #1462)
This commit is contained in:
commit
6bcb10fa23
@ -133,6 +133,17 @@ Configuration
|
||||
- **always**: Restart containers when they exit, regardless of status,
|
||||
retrying indefinitely
|
||||
|
||||
.. cfgcmd:: set container name <name> cpu-quota <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