[IMP] cli: add unit to memory options

The documentation is unclear about the unit used for the --limit-memory-soft
and --limit-memory-hard options of odoo-bin.  The unit used is bytes, but
it isn't mentioned and the default unit is shown in mebibytes, causing
confusion.

closes odoo/documentation#5794

X-original-commit: 9fadc3355d
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Leloup Loïc (lole) 2023-09-08 17:00:00 +02:00
parent 2e595b52b4
commit f18162fe2a

View File

@ -559,18 +559,18 @@ Multiprocessing
.. option:: --limit-memory-soft <limit>
Maximum allowed virtual memory per worker. If the limit is exceeded,
Maximum allowed virtual memory per worker in bytes. If the limit is exceeded,
the worker is killed and recycled at the end of the current request.
Defaults to *2048MiB*.
Defaults to *2048MiB (2048\*1024\*1024B)*.
.. option:: --limit-memory-hard <limit>
Hard limit on virtual memory, any worker exceeding the limit will be
Hard limit on virtual memory in bytes, any worker exceeding the limit will be
immediately killed without waiting for the end of the current request
processing.
Defaults to *2560MiB*.
Defaults to *2560MiB (2560\*1024\*1024B)*.
.. option:: --limit-time-cpu <limit>