Merge pull request #1468 from vyos/mergify/bp/sagitta/pr-1462

T6406: document cpu limit config option (backport #1462)
This commit is contained in:
Christian Breunig 2024-05-28 23:18:02 +02:00 committed by GitHub
commit 6bcb10fa23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.