Skip to content

Commit

Permalink
T6406: document cpu limit config option
Browse files Browse the repository at this point in the history
  • Loading branch information
nvollmar committed May 28, 2024
1 parent d9fef26 commit 9be0847
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/configuration/container/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ 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.

Check warning on line 141 in docs/configuration/container/index.rst

View workflow job for this annotation

GitHub Actions / lint

Line too long: len=84
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.
Expand Down

0 comments on commit 9be0847

Please sign in to comment.