T6406: document cpu limit config option

This commit is contained in:
Nicolas Vollmar 2024-05-27 20:11:32 +02:00 committed by Nicolas Vollmar
parent d9fef261e7
commit 6742fa6314

View File

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